note 13693 added to function.htmlspecialchars.php
| From: | ryan at ryano dot net | Date: | Fri, 29 Jun 2001 07:06:10 +0000 |
| Subject: | note 13693 added to function.htmlspecialchars.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14752@lists.php.net to get a copy of this message | ||
Actually, if you're using >= 4.0.5, this should theoretically be quicker (less overhead
anyway):
$text = str_replace(array(">", "<", """,
"&"), array(">", "<", "\"",
"&"), $text);
http://www.php.net/manual/en/function.htmlspecialchars.php