Re: Re: How to escape " in hidden field?
| From: | nicos@php.net | Date: | Mon, 02 Sep 2002 11:02:56 +0000 |
| Subject: | Re: Re: How to escape " in hidden field? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114901@lists.php.net to get a copy of this message | ||
Hi,
Its really stupid to use that command because there is not any function
to come back to the real way. You should just addslashes() to it then remove
them.
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
nicos@worldakt.com
nicos@php.net
www.GroupAKT.com - Hebergement Group.
www.WorldAKT.com - Hebergement de sites Internet
"Steel" <asergey@inbox.ru> a ecrit dans le message de news:
1063710565.20020902142602@inbox.ru...
> 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
> MT> to
do 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
>