wp_cache_sanitize_value()WPSCache 1.0

No Hooks.

Return

null. Nothing (null).

Usage

wp_cache_sanitize_value( $text, $array );
$text (required)
-
$array (required) (passed by reference — &)
-

wp_cache_sanitize_value() code WPSCache 1.11.0

function wp_cache_sanitize_value($text, & $array) {
	$text = esc_html(strip_tags($text));
	$array = preg_split( '/[\s,]+/', rtrim( $text ) );
	$text = var_export($array, true);
	$text = preg_replace('/[\s]+/', ' ', $text);
	return $text;
}