Hai provato ad usare stripslashes()?