var str="<p>js 去除字符串中的标签 </p>";var result=str.replace(/<.*?>/ig,"");console.log(result);
来源: http://www.bubuko.com/infodetail-2501363.html