首页 > 技术文章 > js去除字符串中的标签
Mrrabbit 原文
var str="<p>js去除字符串中的标签</p>"; var result=str.replace(/<.*?>/ig,""); console.log(result);