sanitize-html icon indicating copy to clipboard operation
sanitize-html copied to clipboard

Add a space where two tags met

Open danschumann opened this issue 9 years ago • 17 comments

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

danschumann avatar Apr 02 '15 17:04 danschumann