WordPress at a glance

wp_filter_kses() WP 1.0

Sanitize content with allowed HTML Kses rules.

This function expects slashed data.


String. Filtered content.

Works based on: wp_kses()

No Hooks.


wp_filter_kses( $data );
$data(string) (required)
Content to filter, expected to be escaped with slashes.

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

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

Code of wp_filter_kses() WP 5.5.1

function wp_filter_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), current_filter() ) );

Related Functions

From tag: kses (html cleanup sanitize)

More from category: Sanitizing, Escaping

No comments
    Log In . Register