OK. preg_replace isn't the way to go - it appears that there's a bug of some sort from what I could find on the subject. Sorry for misleading you.
This definitely works, though, because this time I tested it before opening my big mouth
# $res is the variable containing the dirty string
$mystr = str_replace('\\', '', $res);
You need to make sure you use it just before you display the string because if you pass the cleaned string, say, between pages PHP adds more of those damned backslashes.
It definitely works, though.