A WordPress-centric search engine for devs and theme authors



wp_filter_nohtml_kses ›

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 of the HTML in the content.



Source

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