Re: [PHP] Htmlentities vs htmlspecialchars

2006-07-26 Thread Michael Rasmussen
On Wed, 26 Jul 2006 14:59:46 +0200, Jochem Maas wrote: > > I wonder if anyone can given a solid answer to this? If I remember correctly, htmlspecialchars does what its name indicate: konvert any character with special meaning according to the HTML specification. htmlentities converts any characte

Re: [PHP] Htmlentities vs htmlspecialchars

2006-07-26 Thread Jochem Maas
Dave Goodchild wrote: > 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,