note 96071 added to function.htmlentities

From: Date: Sat, 06 Feb 2010 22:37:44 +0000
Subject: note 96071 added to function.htmlentities
Groups: php.notes 
Request: Send a blank email to php-notes+get-165718@lists.php.net to get a copy of this message
Reconvert HTMLEntities to Symbols Is Use in: http://x-fight.net/banner/?id=128 <?PHP function keephtml($string){ $res = htmlentities($string); $res = str_replace("&nbsp;","",$res); $res = str_replace("&copy;","©",$res); $res = str_replace("&oacute;","ó",$res); $res = str_replace("&ocirc;","ô",$res); $res = str_replace("&otilde;","õ",$res); $res = str_replace("&ouml;","ö",$res); $res = str_replace("&divide;","÷",$res); $res = str_replace("&oslash;","ø",$res); $res = str_replace("&ugrave;","ù",$res); $res = str_replace("&uacute;","ú",$res); $res = str_replace("&ucirc;","û",$res); $res = str_replace("&uuml;","ü",$res); $res = str_replace("&yacute;","ý",$res); $res = str_replace("&thorn;","þ",$res); $res = str_replace("&yuml;","ÿ",$res); return $res; } $foo3 = keephtml ($foo3); ?> Full Cope via E-Mail ---- Server IP: 69.147.83.197 Probable Submitter: 90.187.90.163 ---- Manual Page -- http://www.php.net/manual/en/function.htmlentities.php Edit -- https://master.php.net/note/edit/96071 Del: integrated -- https://master.php.net/note/delete/96071/integrated Del: useless -- https://master.php.net/note/delete/96071/useless Del: bad code -- https://master.php.net/note/delete/96071/bad+code Del: spam -- https://master.php.net/note/delete/96071/spam Del: non-english -- https://master.php.net/note/delete/96071/non-english Del: in docs -- https://master.php.net/note/delete/96071/in+docs Del: other reasons-- https://master.php.net/note/delete/96071 Reject -- https://master.php.net/note/reject/96071 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165718) next »