note 30303 added to function.htmlspecialchars

From: Date: Thu, 13 Mar 2003 13:58:39 +0000
Subject: note 30303 added to function.htmlspecialchars
Groups: php.notes 
Request: Send a blank email to php-notes+get-45217@lists.php.net to get a copy of this message
Sorry, part of that code was unnecessary. Here's a more readable version: function SpecialChars($Security) { if (is_array($Security)) { while(list($key, $val) = each($Security)) { $Security[$key] = SpecialChars($val); } } else { $Security = htmlspecialchars(stripslashes($Security), ENT_QUOTES); } return $Security; } -- http://www.php.net/manual/en/function.htmlspecialchars.php http://master.php.net/manage/user-notes.php?action=edit+30303 http://master.php.net/manage/user-notes.php?action=delete+30303 http://master.php.net/manage/user-notes.php?action=reject+30303

« previous php.notes (#45217) next »