A WordPress-centric search engine for devs and theme authors



wp_filter_kses ›

Since1.0.0
Deprecatedn/a
wp_filter_kses ( $data )
Parameters:
  • (string) $data Content to filter, expected to be escaped with slashes
    Required: Yes
Returns:
  • (string) Filtered content
Defined at:
Codex:

Sanitize content with allowed HTML Kses rules.



Source

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