opposite of quotemeta ?

opposite of quotemeta ?

am 29.10.2009 15:22:28 von Matthew Croud

Hi,

In my script I want the user to enter some html which is saved to a
file,
I've noticed that php rather cleverly escapes the speech marks, so:



becomes:



Is there some function which prevents or reverts this ? something
similar to html_entities maybe?

Many thanks!
Matt

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

Re: opposite of quotemeta ?

am 29.10.2009 15:35:12 von Marc Steinert

Hi Matthew,

you might have magic quotes enabled in your PHP installation. Have a look at
http://php.net/manual/de/security.magicquotes.php about that topic.

If you want to unescape the string, use the stripslashes-function (http://php.net/stripslashes).

Greetings from Germany

Marc


Matthew Croud wrote:
> Hi,
>
> In my script I want the user to enter some html which is saved to a file,
> I've noticed that php rather cleverly escapes the speech marks, so:
>
>
>
> becomes:
>
>
>
> Is there some function which prevents or reverts this ? something
> similar to html_entities maybe?
>
> Many thanks!
> Matt
>


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