WordPress at a glance
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. Nothing.

Usage

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

Changelog

Since 3.0.0 Introduced.

Code of wc_sanitize_textarea() WC 5.2.2

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