RE: [PHP] Is there an opposite to htmlentities()? AGAIN

From: Date: Sun, 22 Oct 2000 00:07:07 +0000
Subject: RE: [PHP] Is there an opposite to htmlentities()? AGAIN
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21607@lists.php.net to get a copy of this message
> > Is there an opposite to htmlentities()? > > > > I understand that this function changes "<" to "&lt;" etc... > > > > How do I return them to their normal text equivalents? > > From the Annotated PHP Manual comments for the htmlentites function > (Always a good place to check before posting a question to the list) Which manual? The PDF Version I have been using has no get_html_transition_table function listed. > $trans = get_html_transition_table(HTMLENTITIES); > $trans = array_flip ($trans); > $original = strtr ($str, $trans); > > Where $str is the string that had the HTMLENTITIES encoded text in it. It > will now be back to normal text... > Regards Grant Walters Walters & Associates, P O Box 13-043 Johnsonville, Wellington, NEW ZEALAND Telephone: +64 4 4765175, CellPhone 025488265

« previous php.general (#21607) next »