The example below show how to remove HTML tags from strings with jQuery
INPUT:
<b>
We</b>
love<span>
jQuery.</span>
OUTPUT: We love jQuery.
jQuery source:
var NewString = OriginalString.replace(/(<([^>]+)>)/ig, "");
Categories:
Javascript
,
jQuery
0 comments:
Post a Comment