Sanitize a string, that can be a multiline.
Description
If WP core sanitize_textarea_field() exists (after 4.7.0) – use it.
Otherwise – split onto separate lines, sanitize each one, merge again.
Parameters
$stringstringrequired- Raw string to sanitize.
Changelog
| Version | Description |
|---|---|
| 1.4.1 | Introduced. |