$trans = get_html_translation_table( HTML_ENTITIES); $str = "Hallo Frau Krämer"; $encoded = strtr($str, $trans);
?php $trans = get_html_translation_table( HTML_ENTITIES); $str = "Hallo Frau Kr auml;mer"; $encoded = strtr($str, $trans);?