wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_filter_kses › WordPress Function

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.

This function expects slashed data.


Source

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