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
This result came as a surprise to me, but explains why widont has this behavior with newlines. But is this the desired behavior? That is, is the text passed in supposed to be escaped already?
I believe this would be the easiest way to get the correct behavior in the above example:
If a string ends with a
<br>
and a single word,widont
does nothing:This makes sense to me. But if a string ends with a
<br>\n
,widont
replaces the newline with a
:This doesn't seem right. While the first would render:
the second would render:
The text was updated successfully, but these errors were encountered: