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



wp_filter_nohtml_kses › WordPress Function

Since2.1.0
Deprecatedn/a
wp_filter_nohtml_kses ( $data )
Parameters:
  • (string) $data Content to strip all HTML from.
    Required: Yes
Returns:
  • (string) Filtered content without any HTML.
Defined at:
Codex:

Strips all HTML from a text string.

This function expects slashed data.


Source

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