js 清除文本中的html标签

text.replace(/<[^>]+>/g,"");

  

原文地址:https://www.cnblogs.com/ant-jmf17/p/6955910.html