wp_filter_nohtml_kses( string $data )
Strips all HTML from a text string.
Description Description
This function expects slashed data.
Parameters Parameters
- $data
-
(string) (Required) Content to strip all HTML from.
Return Return
(string) Filtered content without any HTML.
Source Source
File: wp-includes/kses.php
function wp_filter_nohtml_kses( $data ) { return addslashes( wp_kses( stripslashes( $data ), 'strip' ) ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |