cvs: php-master-web /include functions.inc

From: Date: Sat, 21 Dec 2002 13:42:09 +0000
Subject: cvs: php-master-web /include functions.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-14379@lists.php.net to get a copy of this message
goba Sat Dec 21 08:42:09 2002 EDT Modified files: /php-master-web/include functions.inc Log: Adding shorthand function for htmlspecialchars, now hsc() Index: php-master-web/include/functions.inc diff -u php-master-web/include/functions.inc:1.5 php-master-web/include/functions.inc:1.6 --- php-master-web/include/functions.inc:1.5 Sun May 12 22:41:25 2002 +++ php-master-web/include/functions.inc Sat Dec 21 08:42:09 2002 @@ -1,5 +1,10 @@ <?php +// Shorthand function for htmlspecialchars +function hsc($str) { + return htmlspecialchars($str); +} + function clean($var) { return htmlspecialchars(get_magic_quotes_gpc() ? stripslashes($var) : $var); }

« previous php.mirrors (#14379) next »