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