Re: Reversing htmlspecialchars()

From: Date: Sun, 20 May 2001 10:30:12 +0000
Subject: Re: Reversing htmlspecialchars()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-53608@lists.php.net to get a copy of this message
On 19 May 2001 15:27:31 -0700 impersonator of rudib@email.si (=?iso-8859-1?Q?Rudi_Benkovi=E8?=) planted &I saw in php.general: > function un_htmlentities($str) { > $trans = get_html_translation_table (HTML_ENTITIES); > $trans = array_flip ($trans); > or for earlier php versions, that do not support array_flip() $trans=get_html_translation_table(HTML_ENTITIES); reset($trans); while(list($key,$value)=each($trans)){ $transs[$value]=$key; } $trans = &$transs; > $str = strtr ($str, $trans); > > return ($str); > } > >> -----Original Message----- >> From: Jeroen Geusebroek [mailto:Jeroen.Geusebroek@intellit.nl] >> Sent: Saturday, May 19, 2001 11:46 PM >> To: php-general@lists.php.net >> Subject: [PHP] Reversing htmlspecialchars() >> >> >> Hi There, >> >> How can i reverse the htmlspecialchars() functions? >> I can't seem to find a function for that. >> >> Thanks, >> >> Jeroen Geusebroek >> >> -- >> PHP General ^^^ -- LeoN to e-mail: cut "auto_no." if present. (.±.) to think - is to speak quietly, to speak - is to think aloud \~/ My posted articles archive: http://leo.portland.co.uk/doc00.htm

« previous php.general (#53608) next »