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



wp_kses_post › WordPress Function

Since2.9.0
已弃用n/a
wp_kses_post ( $data )
参数:
  • (string) $data Post content to filter.
    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 unslashed data.


源码

function wp_kses_post( $data ) {
	return wp_kses( $data, 'post' );
}