I have a string of HTML like:
"<p>Hello world!<br/>I am here</p>"
I want to get the output result after replaced:
"<p>Hello world! I am here</p>"
How I can do it with sanitize-html package?
Source: replaceAll
const result = 'lorem<br />ipsum<br />hello'.replaceAll('<br />', ' ');
// result = 'lorem ipsum hello';