Io ho usato questa funzione "stripslashes($var)

prova anche tu!