Try it yourself:
echo(html_entity_decode("…"));
It echos …
instead of …
as it should.
Why won't this decode and how can I make it do so?
Because the default ISO-8859-1 target character set does not contain the "…" character. You'll have to explicitly target UTF-8:
html_entity_decode('…', ENT_QUOTES, 'UTF-8')
Note that this changed in PHP 5.3.3 where UTF-8 became the default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With