hhvm
hhvm copied to clipboard
Difference in html_entity_decode
When executing html_entity_decode()
HHVM seems to enable ENT_QUOTES
by default, unlike PHP:
See: https://3v4l.org/B0lup
I'm going to take a look at this.
HHVM seems still to enable "ENT_QUOTES" by default and ignore "ENT_NOQUOTES" and "ENT_COMPAT".
test: https://3v4l.org/pLsDn
... and also combination of "ENT_QUOTES | ENT_HTML5" isn't working as expected.
test: https://3v4l.org/oaI8E
It broke things, so got reverted, I haven't had a chance to get back to it. @aorenste, it might be worth taking a look at this?
Another issue, involving :
in particular: https://3v4l.org/9F0t6
This entity is also missing from the get_html_translation_table(HTML_ENTITIES, ENT_HTML5, 'UTF-8')
return value.