Iteratively Perfecting
A Software Developer's notes along the way
Static Pages
Posts
SQL Server links
C# Links
HTML5 Links
Thursday, June 28, 2007
Stripping out HTML tags with JavaScript
strContent = strContent.replace(/&(ltgt);/g, function (strMatch, p1){
return (p1 == "lt")? "<" : ">"; });
strContent = strContent.replace(/<\/?[^>]+(>$)/g, "");
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment