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



wp_filter_nohtml_kses ›

Since2.1.0
已弃用n/a
wp_filter_nohtml_kses ( $data )
参数:
  • (string) $data Content to strip all HTML from.
    Required: Yes
返回:
  • (string) Filtered content without any HTML.
定义在:
文档:

Strips all HTML from a text string.

This function expects slashed data.



源码

function wp_filter_nohtml_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), 'strip' ) );
}