Post content refers to the page contents of the ‘post’ type and not $_POST data from forms.
This function expects unslashed data.
$data
(string) (Required) Post content to filter.
(string) Filtered post content with allowed HTML tags and attributes intact.
File: wp-includes/kses.php
function wp_kses_post( $data ) { return wp_kses( $data, ‘post’ ); }
Expand full source code Collapse full source code View on Trac
Uses | Description |
---|---|
wp-includes/kses.php: wp_kses() |
Filters text content and strips out disallowed HTML. |
Used By | Description |
---|---|
wp-includes/widgets/class-wp-widget-custom-html.php: WP_Widget_Custom_HTML::update() |
Handles updating settings for the current Custom HTML widget instance. |
wp-admin/includes/media.php: wp_add_id3_tag_data() |
Parse ID3v2, ID3v1, and getID3 comments to extract usable data |
wp-includes/widgets/class-wp-widget-text.php: WP_Widget_Text::update() |
Handles updating settings for the current Text widget instance. |
wp-includes/class-wp-simplepie-sanitize-kses.php: WP_SimplePie_Sanitize_KSES::sanitize() |
WordPress SimplePie sanitization using KSES. |
Version | Description |
---|---|
2.9.0 | Introduced. |