sanitize-html
sanitize-html copied to clipboard
Add a space where two tags met
I'm wondering if there is a way to create a space wherever tags were.
Picture this:
<div>Some sentence.</div><div>Some other Sentence</div>
It converts to Some sentence.Some other Sentence
when I run
text = sanitizeHtml(text, {allowedTags:[], allowedAttribute: {}});
Is there an option to add whitespace so the output is better: Some sentence. Some other Sentence