WordPress at a glance

wp_kses_data() WP 1.0

Sanitize content with allowed HTML Kses rules.

This function expects unslashed data.

Возвращает

String. Filtered content.

Works based on: wp_kses()
1 time = 0.000276s = fast | 50000 times = 0.59s = very fast | PHP 7.0.2, WP 4.4.1

No Hooks.

Usage

wp_kses_data( $data );
$data(string) (required)
Content to filter, expected to not be escaped.

Список изменений

С версии 2.9.0 Введена.

Code of wp_kses_data() WP 5.5.1

wp-includes/kses.php
<?php
function wp_kses_data( $data ) {
	return wp_kses( $data, current_filter() );
}

Related Functions

From tag: kses (html cleanup sanitize)

More from category: Sanitizing, Escaping

No comments
    Log In . Register