Possible Duplicate:
PHP mysql_real_escape_string() -> stripslashes() leaving multiple slashes
I have a system that accepts user input to a survey and saves the answers to a MySQL database.
Before placing it in this database, it runs it through mysql_real_escape_string()
to verify it is not injection unhappy.
Unfortunately when I output this content to my client in a textbox (just as it was entered) quotes single quotes /
\
... all are escaped - I know I know I asked for it, but I cant give the product out like this - how do I reverse these without risking losing the input people put of "2\3, 1\2"... stuff like that.
Is there a better way to sanitize?