wp_kses_data( string $data ): string

Sanitize content with allowed HTML KSES rules.

Description

This function expects unslashed data.

Parameters

$datastringrequired
Content to filter, expected to not be escaped.

Return

string Filtered content.

Source

function wp_kses_data( $data ) {
	return wp_kses( $data, current_filter() );
}

Changelog

VersionDescription
2.9.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.