Re: opposite of quotemeta ?
| From: | Marc Steinert | Date: | Thu, 29 Oct 2009 14:35:12 +0000 |
| Subject: | Re: opposite of quotemeta ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-299503@lists.php.net to get a copy of this message | ||
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: <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