After spending the entire morning going through questions on Stack Overflow, I'm seeking help. I need to convert both, Unicode entities and HTML entities into UTF-8 text.
$string = "Let's "Kiss & Makeup"";
//-> Let's Kiss & Makeup "lalala"
I manage to decode the HTML entities alone (using html_entity_decode()
and htmlspecialchars_decode
). Not even this widely linked Polyfill does the trick. Since none of the functions I tried decoded Unicode entities, I haven't even tried figuring out how a combination of decoding functions.