Function sanitize
Make strings generally clean. Takes an input string and cleans out
null-bytes, and optionally use KSES
library to prevent XSS attacks and other malicious user input.
Parameters summary
string |
$input_string |
is a string that needs cleaning. |
string |
$sanitize_level = 3 |
<p>is a number between 0 and 3 that describes the
type of sanitizing to perform on $input_string.
0 - Basic sanitation. Only strips null bytes. Not recommended for submitted form data.
1 - User specified. (User defined code is allowed. Used for descriptions and comments.)
2 - Text style/formatting. (Text style codes allowed. Used for titles.)
3 - Full sanitation. (Default. No code allowed. Used for text only fields)</p> |
Return value summary
string
|
the sanitized string.
|