Does Angular have an public API for removing HTML?

前端 未结 0 777
心在旅途
心在旅途 2021-01-23 21:38

I\'m looking at a Pipe implementation that strips HTML from a string like this:

    const withoutHtml = str.replace(/(<([^>]+)>)/gi, \'\');

相关标签:
回答
  • 消灭零回复
提交回复
热议问题