note 20461 added to function.htmlentities
| From: | smarques at tin dot it | Date: | Thu, 04 Apr 2002 12:32:12 +0000 |
| Subject: | note 20461 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-28602@lists.php.net to get a copy of this message | ||
Little typo in function up here, it should be:
function un_htmlentities ($string)
{
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl = array_flip($trans_tbl);
return strtr($string, $trans_tbl);
}
note the _tbl missing from second arg in strtr
--
http://www.php.net/manual/en/function.htmlentities.php
http://master.php.net/manage/user-notes.php?action=edit+20461
http://master.php.net/manage/user-notes.php?action=delete+20461
http://master.php.net/manage/user-notes.php?action=reject+20461