function deleteHtmlTag(str){
 str = str.replace(/<[^>]+>|&[^>]+;/g,"").trim();//去掉所有的html标签和&nbsp;之类的特殊符合
 return str;
}

原文:https://blog.csdn.net/sheng_li/article/details/79194690

相关文章:

  • 2022-01-09
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2021-10-09
猜你喜欢
  • 2021-09-12
  • 2022-12-23
  • 2021-06-27
  • 2021-05-22
  • 2021-05-28
相关资源
相似解决方案