Re: opposite of quotemeta ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>


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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux