stripslashes() strips too much...
| From: | Tyler Longren | Date: | Fri, 10 Aug 2001 16:12:03 +0000 |
| Subject: | stripslashes() strips too much... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-62188@lists.php.net to get a copy of this message | ||
Hello everyone,
I've written a small forum. I addslashes() on the message before it goes
into the database. I stripslashes() before the message is displayed on
the page. That all works fine. But if I have a message like this:
"It's in C:\Windows"
there's trouble. The \ gets striped out, so it's then "It's in
C:Windows";
Does anyone know anyway to get around this? I've been thinking about it,
but can't come up with anything.
Thanks,
Tyler Longren
Captain Jack Communications
tyler@captainjack.com
www.captainjack.com