$('#Text').find('br').remove();//移除br标签
   let content = $('#smsText').html().replace(/ /g, ' ').replace(/&/g, '&')
.replace(/<\/?[^>]*>/g,'')//过滤html的标签
.replace(/&lt;/g, '<').replace(/&gt;/g, '>')

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2021-05-28
  • 2021-12-16
  • 2022-02-21
相关资源
相似解决方案