convert apostrophe and other character encoded to utf-8 normal symbols
$string = 'À ¢A 'quote' is <b>bold</b>';
echo html_entity_decode($string, ENT_QUOTES).PHP_EOL;
echo mb_convert_encoding($string, "UTF-8", "HTML-ENTITIES");
À ¢A 'quote' is <b>bold</b>
À ¢A 'quote' is <b>bold</b>
Comentarii
Trimiteți un comentariu