wp_filter_nohtml_kses

Strips all of the HTML in the content.

Description

(string) wp_filter_nohtml_kses( (string) $data ); 

Returns (string)

Filtered content without any HTML

Parameters (1)

0. $data (string)
Content to strip all HTML from

Usage

  1. if ( !function_exists( 'wp_filter_nohtml_kses' ) ) { 
  2. require_once ABSPATH . WPINC . '/kses.php'; 
  3.  
  4. // Content to strip all HTML from 
  5. $data = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_filter_nohtml_kses($data); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/kses.php  
  1. function wp_filter_nohtml_kses( $data ) { 
  2. return addslashes( wp_kses( stripslashes( $data ), 'strip' ) );