wp_kses_data( string $data )

Sanitize content with allowed HTML KSES rules.


Description Description

This function expects unslashed data.


Top ↑

Parameters Parameters

$data

(string) (Required) Content to filter, expected to not be escaped.


Top ↑

Return Return

(string) Filtered content.



Top ↑

Source Source

File: wp-includes/kses.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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