WordPress开发者和主题制作者的搜索引擎



wp_filter_post_kses ›

Since2.0.0
已弃用n/a
wp_filter_post_kses ( $data )
参数:
  • (string) $data Post content to filter, expected to be escaped with slashes.
    Required: Yes
返回:
  • (string) Filtered post content with allowed HTML tags and attributes intact.
定义在:
文档:

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.



源码

function wp_filter_post_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), 'post' ) );
}