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 

Greetings from Germany


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:
> <a href="www.google.com">Google</a>
> becomes:
> <a href=\"www.google.com\">Google</a>
> 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

Reply via email to