Devi usare addslashes (che aggiunge gli slashes), non stripslashes (che li toglie)