wp_kses_post( string $data )
Sanitizes content for allowed HTML tags for post content.
Description Description
Post content refers to the page contents of the ‘post’ type and not $_POST
data from forms.
This function expects unslashed data.
Parameters Parameters
- $data
-
(string) (Required) Post content to filter.
Return Return
(string) Filtered post content with allowed HTML tags and attributes intact.
Source Source
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
Changelog Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |