Is there any php function that can do the opposite of htmlentities() example that transform ä to ä
thank you in advance gjergji
I don't think there is. Why do you need it ?
I have some documents written with HTML editor (in German and french) so they have HTML entities like &... and i have to mail those as plain text, unfortunally those documents are big so i wanted any better solution then ereg_replace()
gjergji
For simple replacements, use str_replace() instead (more efficient)
If you use PHP4, I found what you want in the get_html_translation_table() function help :
$trans = array_flip(get_html_translation_table(HTML_ENTITIES)); $new = strtr($str,$trans);
Unfortunally those servers have 3.0.6 which is bugy for with str_replace() Anyway thanks a lot for your help and time Happy new year!!!
Is this a one-time need? Just d/l the scripts to your local machine, install the cgi version of php locally, and process them there.