You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @der-flo! Thanks for pointing this out, that seems like a really good feature to add. I don't think we need a new scrubber for it, though, I think we should modify the current behavior of #to_text (or, really, the behavior of the underlying scrubber, Loofah::Scrubbers::NewlineBlockElements.
That scrubber currently adds newlines for "block" elements in HTML4 and HTML5 plus a loose set of elements that can contain block elements. But it doesn't pay attention to the element br which is the direct analog of a newline in HTML.
I'll write up a PR for this now, it should be a very small change.