CI_Security::xss_clean()

xss_clean($str[, $is_image = FALSE])

Parameters:
  • $str (mixed) – Input string or an array of strings
Returns:

XSS-clean data

Return type:

mixed

Tries to remove XSS exploits from the input data and returns the cleaned string. If the optional second parameter is set to true, it will return boolean TRUE if the image is safe to use and FALSE if malicious data was detected in it.

doc_CodeIgniter
2016-10-15 16:31:51
Comments
Leave a Comment

Please login to continue.