Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

automated escape character troubles

0 views
Skip to first unread message

The Stealth Techie

unread,
Jan 21, 2002, 5:01:55 PM1/21/02
to
Hi there,
I wrote a script which lets you fill in a couple fields in an html form
and then writes that data to a text file, and then reads it. It's designed
for people to chat with each other. But if you type in a quote " or a
backslash \ or a single quote ' , when the message is printed to the screen,
before one of those characters is an escape character...the backslash
>( Can i have PHP ignore these characters entirely, or somehow bypass the
automatically inserted backslash? Any help would be greatly appreciated.
Thanks in advance,
The Stealth Techie

btw, my site is www.sifoc.com -- check it out! the above script i am talking
about is called the FlameBoard, so if you visit the site you can see whats
wrong with it.


Scott Sturgeon

unread,
Jan 21, 2002, 2:33:03 PM1/21/02
to
Just put the function stripslashes($text) around the output. That way
the escape characters are still there and won't break the code but also
won't be displayed on the html page.

The Stealth Techie

unread,
Jan 21, 2002, 6:44:30 PM1/21/02
to
Sweet! Thanks a lot! It works like a charm.

--
Scott Sturgeon <sc...@openroad.ca> wrote in message
news:3C4C6CEF...@openroad.ca...

0 new messages