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/


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

Reply via email to