note 96071 deleted from function.htmlentities by danbrown
| From: | danbrown@php.net | Date: | Sun, 07 Feb 2010 16:16:26 +0000 |
| Subject: | note 96071 deleted from function.htmlentities by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165728@lists.php.net to get a copy of this message | ||
Note Submitter: hellbz at x-fight dot net
----
Reconvert HTMLEntities to Symbols
Is Use in: http://x-fight.net/banner/?id=128
<?PHP
function keephtml($string){
$res = htmlentities($string);
$res = str_replace(" ","",$res);
$res = str_replace("©","©",$res);
$res = str_replace("ó","ó",$res);
$res = str_replace("ô","ô",$res);
$res = str_replace("õ","õ",$res);
$res = str_replace("ö","ö",$res);
$res = str_replace("÷","÷",$res);
$res = str_replace("ø","ø",$res);
$res = str_replace("ù","ù",$res);
$res = str_replace("ú","ú",$res);
$res = str_replace("û","û",$res);
$res = str_replace("ü","ü",$res);
$res = str_replace("ý","ý",$res);
$res = str_replace("þ","þ",$res);
$res = str_replace("ÿ","ÿ",$res);
return $res;
}
$foo3 = keephtml ($foo3);
?>
Full Cope via E-Mail