[js] function removeHTMLTag(str) { str = str.replace(/<\/?[^>]*>/g,''); //去除HTML tag str = str.replace(/[ | ]*\n/g,'\n'); //去除行尾空白 //str = str.replace(/\n[\s| | ]*\r/g,'\n'); //去除多余空行 str=str.replace(/&nbsp;/ig,'');//去掉&nbsp; return str; } [/js]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2022-02-15
  • 2022-12-23
  • 2021-08-29
猜你喜欢
  • 2021-09-14
  • 2022-12-23
  • 2021-09-09
  • 2022-02-20
  • 2022-12-23
  • 2021-06-27
相关资源
相似解决方案