Sanitize content with allowed HTML KSES rules.
This function expects unslashed data.
$datastringrequired
function wp_kses_data( $data ) {
return wp_kses( $data, current_filter() );
}
| Version | Description |
|---|---|
| 2.9.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_kses_data