sanitize_textarea_field

sanitize_textarea_field( string $str )
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.

Input:
[?]

Have Feedback?

Let us know how we can improve this tool.
Share Feedback