Re: Re: How to escape " in hidden field?
| From: | Steel | Date: | Mon, 02 Sep 2002 10:26:02 +0000 |
| Subject: | Re: Re: How to escape " in hidden field? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114895@lists.php.net to get a copy of this message | ||
Hi Martin,
Monday, September 2, 2002, 2:21:10 PM, Я получил:
>> Using the htmlspecialchars() function, so that "Hello \"world\"" will
>> be
>> written in pure HTML: "Hello "world""
MT> Thanx a lot! But how do I get it back to 'Hello "world"'? Do I have to do
MT> it
MT> manually?
MT> Martin
Yep. But you can use some Regexp features.
EX:
$string = preg_replace("/\$quot/","\"","Hello
"world"");
--
The Same,
Steel mailto:asergey@inbox.ru
http://www.none.ru