note 62537 deleted from function.htmlspecialchars by bjori

From: Date: Thu, 02 Mar 2006 22:15:46 +0000
Subject: note 62537 deleted from function.htmlspecialchars by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-104731@lists.php.net to get a copy of this message
Note Submitter: me at macronesia dot net Reason: bad code ---- This does more than convert the said tags... if you have a character of a forgeign charset, it converts that into an entity as well. I'm going back to using str_replace... $val = str_replace("&" , "&amp;", $val); $val = str_replace(">", "&gt;", $val); $val = str_replace("<", "&lt;", $val); $val = str_replace("\"", "&quot;", $val); $val = str_replace("'", "&#39;", $val);

« previous php.notes (#104731) next »