wp_kses_data

函数


wp_kses_data ( $data )
参数
  • (string)
    $data
    Content to filter, expected to not be escaped.
    Required:
返回值
  • (string) Filtered content.
定义位置
  • wp-includes/kses.php
    , line 2079
引入
2.9.0
弃用

Sanitize content with allowed HTML KSES rules.

This function expects unslashed data.

function wp_kses_data( $data ) {
	return wp_kses( $data, current_filter() );
}