ENT_COMPAT, 'UTF-8'); $decoded = htmlspecialchars_decode( $string, ENT_QUOTES | ENT_SUBSTITUTE ); ]]>