Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- - Unsanitize Input
- - Strips slashes from the input (eg. turns dog\'s into dog's)
- $string - The string you want to unsanitize.
- $multiline - Turns \n into HTML <br />
- */
- public function unsanitizeInput($string, $multiline = false) {
- if ($multiline)
- $string = nl2br(stripslashes($string));
- else
- $string = stripslashes($string);
- return $string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement