sanitize_textarea_field ( $str )
- (string) str String to sanitize.
- (string) Sanitized string.
- Introduced in WordPress: 4.7.0
- Deprecated in WordPress: —
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.