Kod
' oraz
na unicode czyli ' ?
$name = htmlspecialchars_decode(preg_replace_callback("/(&#[0-9]+;)/", function($m) { return mb_convert_encoding($m[1], "UTF-8", "HTML-ENTITIES"); }, '<'.trim($matches[1])), ENT_NOQUOTES);
<?php $htmlTable = get_html_translation_table(HTML_SPECIALCHARS, ENT_QUOTES, 'UTF-8'); foreach($htmlTable as $key => $value) { } $htmlTable = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, 'UTF-8'); foreach($htmlTable as $key => $value) { }