- stripslashes: documentation ( source)
<?php
// String with excessive backslashes manually added.
// Only need the escaped newline characters ("\n")
$str = "\nMilly O\'Malley wishes \\to \\e\at cake and \\not bread; see http://example.com.\n";
echo $str;
$stripped = stripslashes( $str);
echo $stripped;