wpcf7_kses()CF7 1.0

Sanitizes content for allowed HTML tags for the specified context.

Хуков нет.

Возвращает

Строку. Filtered text with allowed HTML tags and attributes intact.

Использование

wpcf7_kses( $input, $context );
$input(строка) (обязательный)
Content to filter.
$context(строка)
Context used to decide allowed tags and attributes.
По умолчанию: 'form'

Код wpcf7_kses() CF7 5.9.3

function wpcf7_kses( $input, $context = 'form' ) {
	$output = wp_kses(
		$input,
		wpcf7_kses_allowed_html( $context )
	);

	return $output;
}