Stripping out HTML tags with JavaScript
strContent = strContent.replace(/&(ltgt);/g, function (strMatch, p1){
return (p1 == "lt")? "<" : ">"; });
strContent = strContent.replace(/<\/?[^>]+(>$)/g, "");
Labels: JavaScript
strContent = strContent.replace(/&(ltgt);/g, function (strMatch, p1){
Labels: JavaScript
0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home