note 20244 added to function.htmlentities
| From: | andy at andyjeffries dot remove dot co dot uk | Date: | Wed, 27 Mar 2002 14:50:01 +0000 |
| Subject: | note 20244 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28274@lists.php.net to get a copy of this message | ||
The function below can be used to get the reverse of functions like htmlentities (i.e. to convert
back from things like & to &):
function un_htmlentities ($string)
{
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl = array_flip($trans_tbl);
return strtr($string, $trans);
}
--
http://www.php.net/manual/en/function.htmlentities.php
http://master.php.net/manage/user-notes.php?action=edit+20244
http://master.php.net/manage/user-notes.php?action=delete+20244
http://master.php.net/manage/user-notes.php?action=reject+20244