sanitize_text_field


sanitize_text_field ( $str )

Parameters:
  • (string) str String to sanitize.
See:
Returns:
  • (string) Sanitized string.
Defined at:

Description

Sanitizes a string from user input or from the database.- Checks for invalid UTF-8, - Converts single `<` characters to entities - Strips all tags - Removes line breaks, tabs, and extra whitespace - Strips octets

Related Functions

_sanitize_text_fields, sanitize_textarea_field, sanitize_term_field, sanitize_user_field, sanitize_post_field

Top Google Results

User discussions

wpseek mobile