The very reason magic quotes are deprecated is that a one-size-fits-all approach to escaping/quoting is wrongheaded ...
php.net