note 62537 added to function.htmlspecialchars

From: Date: Thu, 02 Mar 2006 21:12:01 +0000
Subject: note 62537 added to function.htmlspecialchars
Groups: php.notes 
Request: Send a blank email to php-notes+get-104726@lists.php.net to get a copy of this message
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); ---- Server IP: 64.71.164.2 Probable Submitter: 68.202.162.135 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php Edit -- http://master.php.net/note/edit/62537 Del: integrated -- http://master.php.net/note/delete/62537/integrated Del: useless -- http://master.php.net/note/delete/62537/useless Del: bad code -- http://master.php.net/note/delete/62537/bad+code Del: spam -- http://master.php.net/note/delete/62537/spam Del: non-english -- http://master.php.net/note/delete/62537/non-english Del: in docs -- http://master.php.net/note/delete/62537/in+docs Del: other reasons-- http://master.php.net/note/delete/62537 Reject -- http://master.php.net/note/reject/62537 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#104726) next »