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);
JS去除html标签
最新推荐文章于 2024-03-07 14:12:01 发布
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);