Uses
Uses | Description |
---|---|
wp-includes/kses.php: wp_kses() | Filters text content and strips out disallowed HTML. |
Sanitizes content for allowed HTML tags for post content.
Post content refers to the page contents of the ‘post’ type and not $_POST
data from forms.
This function expects slashed data.
(string) (Required) Post content to filter, expected to be escaped with slashes.
(string) Filtered post content with allowed HTML tags and attributes intact.
File: wp-includes/kses.php
function wp_filter_post_kses( $data ) { return addslashes( wp_kses( stripslashes( $data ), 'post' ) ); }
Version | Description |
---|---|
2.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_filter_post_kses