WordPress at Your Fingertips
function is not described

wc_sanitize_textarea() WC 3.0.0

Run wc_clean over posted textarea but maintain line breaks.

No Hooks.

Return

String.

Usage

wc_sanitize_textarea( $var );
$var(string) (required)
Data to sanitize.

Changelog

Since 3.0.0 Introduced.

Code of wc_sanitize_textarea() WC 6.1.0

function wc_sanitize_textarea( $var ) {
	return implode( "\n", array_map( 'wc_clean', explode( "\n", $var ) ) );
}