Re: quickform: htmlspecialchars() is in the way

From: Date: Mon, 20 Jun 2005 17:26:45 +0000
Subject: Re: quickform: htmlspecialchars() is in the way
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19699@lists.php.net to get a copy of this message
On 6/20/05, Jeroen Houben <jeroen@terena.nl> wrote: > Hi, > > I have a problem where I want a value of a hidden element to NOT be > escaped by htmlspecialchars(). Is this possible? It doesn't seem to be > since it is based on HTML_Common which has no options for specifying > these kinds of things.. > Please explain why you want this. If you don't run htmlspecialchars on attributes you can quite easily get invalid HTML. It would be wrong in any situation I can think of to not run htmlspecialchars on a value. Actually IMHO it should be htmlentities, but anyway... -- Justin Patrin

« previous php.pear.general (#19699) next »