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
Specifically, href, action, src, and name (but only within an anchor) are always escaped when generating HTML -- basically, anything that could be a URI reference.
Prognosis
The good news is that I think we can fix this in the next few months. Check out sparklemotion/nokogiri#2204 for progress on integration HTML5 parsing into Nokogiri; the next logical step after that is introducing HTML5 support into Loofah and rails-html-sanitizer.
Unfortunately, until then, there's no easy way to deal with this. Sorry I couldn't be of more help.
I've found that a WhitelistSanitizer instance will manipulate the values of an allowed attribute.
The conversion of
$
to%24
can cause some urls to 404. Is this intentional? Is there a way to configure it to leave the values of attributes as is?The text was updated successfully, but these errors were encountered: