wp_kses_post() – Sanitizes content for allowed HTML tags for post content.
You appear to be a bot. Output may be restricted
Description
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 unslashed data.
Usage
$string = wp_kses_post( $data );
Parameters
- $data
- ( string ) required – Post content to filter.
Returns
string Filtered post content with allowed HTML tags and attributes intact.
Source
File name: wordpress/wp-includes/kses.php
Lines:
1 to 3 of 3
function wp_kses_post( $data ) { return wp_kses( $data, 'post' ); }