sanitize_ (tag)
| safecss_filter_attr() | Cleans CSS properties by removing unsafe and disallowed rules. |
| sanitize_email() | Cleans a string, leaving only characters allowed in an email address. |
| sanitize_file_name() | Sanitizes a file name, replacing spaces with '_' and removing invalid characters, etc. |
| sanitize_html_class() | Prepares text for use in the HTML class attribute: removes all unsuitable characters. |
| sanitize_key() | Clears the string to use it as a key. Keys are used as different internal IDs. |
| sanitize_meta() | Clears the value of meta data. The function itself does nothing, but applies the filter |
| sanitize_mime_type() | Cleans the string for use as a MIME type. Removes everything except |
| sanitize_option() | Sanitizes the given option value using the specified sanitization method. |
| sanitize_post() | Clears each field of the specified post object/array. |
| sanitize_post_field() | Sanitizes the specified value of the specified post field. The sanitization level is specified by the $context parameter. |
| sanitize_sql_orderby() | Checks if the provided string can be used in the ORDER BY part of an SQL query. |
| sanitize_term() | Sanitize all fields of the taxonomy element (term) using the sanitize_term_field() function. |
| sanitize_term_field() | Prepares (cleanse) term field value for use it in a text or elsewhere (depends on cleaning context). |
| sanitize_text_field() | Sanitizes the passed string leaving clean text: without HTML tags, line breaks, etc. |
| sanitize_textarea_field() | Cleans a string passed from a textarea field (when saving to the database) or when retrieved from the database. |
| sanitize_title() | Cleans the given string (title) for use as a slug. |
| sanitize_title_for_query() | Prepares a string for use as a slug in an SQL query. Injection cleaning is done separately. It is implied that this is the name of something: a title, a filename, etc. |
| sanitize_title_with_dashes() | Cleans the title by replacing spaces with a hyphen |
| sanitize_url() | Cleans the specified URL so that it can be safely used for redirects or stored in the database. |
| sanitize_user() | Cleans the username (login, username) by removing unsafe characters. |
| wc_clean() | Cleans the passed data (variables) using sanitize_text_field(). Arrays are cleared recursively. |
| wp_check_invalid_utf8() | Checks for the presence of invalid UTF8 characters in a string. |