Open youroff opened 2 months ago
@rrrene any thoughts?
I am using HtmlSanitizeEx.html5(some_binary)
and it replaces the above-mentioned symbols with HTML entities. Anyway to prevent this from happening?
Hi, sorry for the late reply.
I seem to remember that this is done by the library we use for parsing the HTML.
Not sure we can prevent this, but I will try to look into it 👍
edit: I confirmed that :mochiweb_html
is doing this, which causes this behaviour.
Has anyone identified a version of this library where it doesn't happen? Is there one that is safe to roll back to or are there are concerns?
strip_tags
replaces&
,>
and<
symbols for corresponding HTML entities. This is unexpected, since those are not tags and they're not being stripped. Should it be a part of a different function instead?