Re: Display strings with single quotes

From: Date: Thu, 20 Feb 2003 15:03:54 +0000
Subject: Re: Display strings with single quotes
References: 1 2 3  Groups: php.general php.general 
Request: Send a blank email to php-general+get-136367@lists.php.net to get a copy of this message
At 13:41 20.02.2003, Jason Wong spoke out and said: --------------------[snip]-------------------- >On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: >> >> htmlentities won't work with single quotes, use addslashes: > >Actually just (only) htmlentities() will do. See manual for options regarding >whether to encode single-quotes and double-quotes. --------------------[snip]-------------------- Mea culpa. Of course you're right... you need to use htmlentities($string, ENT_QUOTES); My message was rubbish. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#136367) next »