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
I suppose one could also make the argument that we should not remove the contents of tags that are not allowed.
I think this is what the ruby library does too, see :remove_contents.
Maybe we should default to keep the contents of disallowed tags, while removing the tags, unless disallowed tag is one of: iframe math noembed noframes noscript plaintext script style svg xmp (for which contents should not be retained).
jonasfj
changed the title
font tag hides text
[sanitize_html] <font> tag hides text
Mar 3, 2021
When I use this code, sanitizeHtml removes both font tags and all contents inside fonts.
printed string is
<p dir="ltr"></p>
The text was updated successfully, but these errors were encountered: