echo $name gives me Mount Kimbie — Carbonated.
How do I get Mount Kimbie — Carbonated?
&mdash, quotes and other stuff should be decoded into regular symbols.
I've tried both htmlspecialchars_decode($name) and html_entity_decode($name), they don't work.
You probably lack the charset parameter:
html_entity_decode($name, 0, "UTF-8");
Depending on PHP version, Latin-1 was assumed, which does not harbor mdash.
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