Page 1 of 1

Slashes Appearing in Text Submitted to a MySQL db

Posted: Wed Feb 12, 2003 8:29 pm
by Splitfyre
Here's another issue that I am having. I have a backend content editor and whenever someone submits new content and it is confirmed in the backend, it shows /'s before an apostrophe. It's really weird!!

For example:

Code: Select all

that couldn''t be there
Help! :(

Posted: Wed Feb 12, 2003 8:45 pm
by redcircle
before you output to the browser use the stripslashes() function

echo stripslashes($output);