wp_filter_nohtml_kses

函数


wp_filter_nohtml_kses ( $data )
参数
  • (string)
    $data
    Content to strip all HTML from.
    Required:
返回值
  • (string) Filtered content without any HTML.
定义位置
  • wp-includes/kses.php
    , line 2169
引入
2.1.0
弃用

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' ) );
}