I am writing a code editor using CodeMirror. I am going to be saving Javascripts in a mySQL database. Because Javascript uses the ' symbol quite a bit, I have had to use mysqli->real_escape_string() on the textarea
input.
When I retrieve the source from the scripts table, it still has the escaped characters.
So, if i were to insert this:
this.update('something');
You would have
this.update(\'something\');
Is there some way to reverse the process?
real_escape_string(). Due to magic quotes or*slashes()for example.