写个小功能,JS去除html标签
1
2
3
|
var
str = "<span style=" display:none; " mce_style=" display:none; ">This is test</span><img src=‘‘></img><strong></strong><br/>" ;
str = str.replace(/<[^>].*?>/g, "" );
alert(str); |
原文地址:http://blog.csdn.net/aganar/article/details/6192920