remove_invisible_characters()

remove_invisible_characters($str[, $url_encoded = TRUE])

Parameters:
  • $str (string) – Input string
  • $url_encoded (bool) – Whether to remove URL-encoded characters as well
Returns:

Sanitized string

Return type:

string

This function prevents inserting NULL characters between ASCII characters, like Java\0script.

Example:

remove_invisible_characters('Java\\0script');
// Returns: 'Javascript'
doc_CodeIgniter
2016-10-15 16:32:36
Comments
Leave a Comment

Please login to continue.