Sanitize 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.
Signature
wp_kses_post( $data )
- data
- (string) Post content to filter
Return
(string) Filtered post content with allowed HTML tags and attributes intact.
Source
function wp_kses_post($data) {
return wp_kses( $data , 'post' );
}
WP Trac GitHub Bitbucket
Link here
-
URL
http://queryposts.com/function/wp_kses_post/ -
HTML
<a href='http://queryposts.com/function/wp_kses_post/'>wp_kses_post()</a> -
Markdown
[wp_kses_post()](http://queryposts.com/function/wp_kses_post/) -
BBCode
[url=http://queryposts.com/function/wp_kses_post/]wp_kses_post()[/url]