core source
HTMLVALUES.replace(/<(\/)?([a-zA-Z]*)(\s[a-zA-Z]*=[^>]*)?(\s)*(\/)?>/gi,'')
using jquery button event
$('#stripTags').click(function(){ $('textarea[name="strReplace"]').val($('textarea[name="strReplace"]').val() .replace(/<(\/)?([a-zA-Z]*)(\s[a-zA-Z]*=[^>]*)?(\s)*(\/)?>/gi,'') return false; });
No comments:
Post a Comment