Uses
Uses | Description |
---|---|
wp-includes/kses.php: wp_kses() | Filters text content and strips out disallowed HTML. |
wp-includes/plugin.php: current_filter() | Retrieve the name of the current filter or action. |
Sanitize content with allowed HTML KSES rules.
This function expects unslashed data.
(string) (Required) Content to filter, expected to not be escaped.
(string) Filtered content.
File: wp-includes/kses.php
function wp_kses_data( $data ) { return wp_kses( $data, current_filter() ); }
Version | Description |
---|---|
2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_kses_data