get html translation table: decode
<?php $entities = get_html_translation_table(HTML_ENTITIES); $translate = array_flip($entities); $string = "é ú"; echo strtr($string, $translate); ?>