hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Difference in html_entity_decode

Open multiwebinc opened this issue 9 years ago • 4 comments

When executing html_entity_decode() HHVM seems to enable ENT_QUOTES by default, unlike PHP:

See: https://3v4l.org/B0lup

multiwebinc avatar Sep 26 '15 06:09 multiwebinc

I'm going to take a look at this.

mattflaschen avatar Feb 04 '16 23:02 mattflaschen

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

voku avatar Jul 23 '16 20:07 voku

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?

Orvid avatar Jul 24 '16 19:07 Orvid

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.

narfbg avatar Jan 10 '17 13:01 narfbg