View Single Post
 
Old June 8th, 2004, 08:16 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Ok, sorry I misspelled the function...it's stripslashes not strip_slashes.

Right, if you're editing a page of content, as in a textarea or something like that you can strip out the slashes by putting the variable containing the content through stripslashes.

echo stripslashes($_POST['content']);

Now your HTML source won't have the forward slashes in the source.

Regards,
Rich

::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::