I'm looking at a Pipe implementation that strips HTML from a string like this:
const withoutHtml = str.replace(/(<([^>]+)>)/gi, '');
Just curious whether Angular CDK or Angular Core (DomSanitizer ... ?) has an API built in for doing this?
I looked at this question but no love there:
How to remove html tags from text in angular 2
2.1m questions
2.1m answers
60 comments
57.0k users