sanitize_textarea_field


sanitize_textarea_field ( $str )

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

Description

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.

Related Functions

sanitize_text_field, _sanitize_text_fields, sanitize_term_field, sanitize_user_field, sanitize_category_field

Top Google Results

User discussions

wpseek mobile