wc_sanitize_textarea( string $var )
Run wc_clean over posted textarea but maintain line breaks.
Description Description
Parameters Parameters
- $var
-
(Required) Data to sanitize.
Return Return
(string)
Source Source
File: includes/wc-formatting-functions.php
function wc_sanitize_textarea( $var ) {
return implode( "\n", array_map( 'wc_clean', explode( "\n", $var ) ) );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |