I'm using a web form to store user input into a MySQL DB, using $_POST.
I have noticed that once textarea
fields area read, slashes are inserted automatically to escape some characters.
As I need to manipulate text before storing, I thought about using stripslashes
, however I have discovered that it may garbage text, if Japanese or other asiatic character sets are used.
Is there a proper way to do the job (remove slashes) safely?