wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
sanitize_textarea_field › WordPress Function
Seit4.7.0
Veraltetn/v
› sanitize_textarea_field ( $str )
Parameter: |
|
Siehe: | |
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Sanitizes a multiline string from user input or from the database.
The function is like sanitize_text_field(), but preserves new lines (n) and other whitespace, which are legitimate input in textarea elements.Ähnliche Funktionen: sanitize_text_field, _sanitize_text_fields, sanitize_term_field, sanitize_user_field, sanitize_category_field
Quellcode
function sanitize_textarea_field( $str ) { $filtered = _sanitize_text_fields( $str, true ); /** * Filters a sanitized textarea field string. * * @since 4.7.0 * * @param string $filtered The sanitized string. * @param string $str The string prior to being sanitized. */ return apply_filters( 'sanitize_textarea_field', $filtered, $str ); }