Open
Description
Rails has the strip_tags
method, which is great. Howerever for input like <p>a</p><p>b</p>
the output is ab
which doesn't follow what is displayed in the browser.
Loofah has the function to_text
which handles newlines like this. I would like to introduce an option like preserve_whitespace
(or similar) to the FullSanitizer
to do just that.
Is that something you would consider adding?