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



wp_filter_kses ›

Since1.0.0
已弃用n/a
wp_filter_kses ( $data )
参数:
  • (string) $data Content to filter, expected to be escaped with slashes.
    Required: Yes
返回:
  • (string) Filtered content.
定义在:
文档:

Sanitize content with allowed HTML KSES rules.

This function expects slashed data.



源码

function wp_filter_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), current_filter() ) );
}