The PHP string function “stripslashes” only remove’s a certain “\” on a string. Here’s a good code I found to deeply remove multiple \\\\\ on a string.
1 2 3 4 5 6 7 8 9 10 | <?php function stripslashesdeeply($text, $times) { $i = 0; while (strstr($text, '\\') && $i != $times) { $text = stripslashes($text); $i++; } return $text; } ?> |
