Sanitize content with allowed HTML KSES rules.
Description
This function expects slashed data.
Parameters
$data
stringrequired- Content to filter, expected to be escaped with slashes.
Source
function wp_filter_kses( $data ) {
return addslashes( wp_kses( stripslashes( $data ), current_filter() ) );
}
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.