Iteratively Perfecting
A Software Developer's notes along the way
Static Pages
(Move to ...)
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
‹
›
Home
View web version
No comments:
Post a Comment