note 18937 deleted from function.htmlentities by jimw
| From: | jimw@php.net | Date: | Tue, 19 Mar 2002 20:08:15 +0000 |
| Subject: | note 18937 deleted from function.htmlentities by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-27967@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.