I’m escaping inputs to my db with:
mysql_real_escape_string()
If I input:
"Let's see"
when I select from DB I get:
"let\'s see"
How do I prevent this? I’m first writing on a form, then sending it through AJAX to a .php file and then escaping it with mysql_real_escape_string() and nothing else.
I can’t tell you why it is not fixing it however when you select something from your database you can use
stripslashes()to return it to it’s normal state e.g.Would output: