Filters a sanitized text field string.
$filteredstring$strstringwp-includes/formatting.php:5667sanitize_text_field() * * @since 2.9.0 * * @param string $filtered The sanitized string. * @param string $str The string prior to being sanitized. */ return apply_filters( 'sanitize_text_field', $filtered, $str );} /** * Sanitizes a multiline string from user input or from the database. * * The function is like sanitize_text_field(), but preservesIntroduced in 2.9.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.