I looked, looked and looked, but I could not find anything about this. So let's say that I have this line ...
var str = '<script>blah blah blah</script><a>...</a><div>...</div><p>...</p>';
I need to cut script tags from a string along with all the content between the tags. Once the script tag is removed, I need to add it to the text box. How in the world do I do this with jQuery?
Any help would be greatly appreciated!
source share