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, while upgrading Rails we have found an unexpected difference in behavior between using Loofah directly, HTML4::FullSanitizer and HTML5::FullSanitizer.
The problem is that rails-html-sanitizer is decoded HTML entities to their unicode representation when the HTML entity does not have the final semicolon, which is causing false positives.
For example with the × entity, the correct behaviour is:
Is this a bug, or expected behavior? If it's expected behavior, is there a way to configure the new HTML5 sanitizer to ensure that it only decodes full HTML entities with the final semicolon present?