Htmlentities vs htmlspecialchars
| From: | Dave Goodchild | Date: | Wed, 26 Jul 2006 12:40:58 +0000 |
| Subject: | Htmlentities vs htmlspecialchars | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-239801@lists.php.net to get a copy of this message | ||
Hi all. I know htmlspecialchars converts the smallest set of entities
possible to generate valid HTML, and that htmlentities goes much further, so
what is the difference? Is it not better to use htmlentities in every case,
making htmlspecialchars somewhat redundant, or is there a performance
tradeoff?
--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk