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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to