wp_filter_kses( string $data )

Sanitize content with allowed HTML Kses rules.


Parameters

$data

(Required) Content to filter, expected to be escaped with slashes


Return

(string) Filtered content


Source

File: wp-includes/kses.php

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


Changelog

Changelog
Version Description
WP-1.0.0 Introduced.