note 18937 added to function.htmlentities
| From: | peon at php2 dot chek dot com | Date: | Sun, 10 Feb 2002 14:35:17 +0000 |
| Subject: | note 18937 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26449@lists.php.net to get a copy of this message | ||
Please delete this if it's been posted before:
<?
function unhtmlentities($str)
{
$trans = get_html_translation_table(HTML_ENTITIES);
$trans = array_flip($trans);
return strtr($str, $trans);
}
$strEntities = ""<¡©";
$strEntities .= "¯µµ";
$strEntities .= "¿ÃÅ";
$strEntities .= "ÍÑÙ";
$strEntities .= "áëñ";
$strEntities .= "÷ý’";
$strEntities .= "üôð";
$strEntities .= "èäÞ";
$strEntities .= "ØÔÎÊ";
$strEntities .= "ľ¸²";
$strEntities .= "®¦¤ ";
echo unhtmlentities($strEntities);
?>
The ".=" is so it doesn't mess this page up.
--
http://www.php.net/manual/en/function.htmlentities.php
http://master.php.net/manage/user-notes.php?action=edit+18937
http://master.php.net/manage/user-notes.php?action=delete+18937
http://master.php.net/manage/user-notes.php?action=reject+18937