Re: Re: How to escape apostrophe in HTML textbox exactly???

From: Date: Wed, 30 Jun 2004 17:51:23 +0000
Subject: Re: Re: How to escape apostrophe in HTML textbox exactly???
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-189326@lists.php.net to get a copy of this message
Joel Kitching wrote:
What's wrong with addslashes() on the way in and stripslashes() on the way out? Why would you want to convert it to it's HTML entity?
Please try to load the following HTML and tell me what's wrong with it: <input type="text" name="whatever" value="some \" value"> And then load this: <input type="text" name="whatever" value="some &quot; value"> -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#189326) next »