Uses
Uses | Description |
---|---|
wp-includes/kses.php: wp_kses() | Filters text content and strips out disallowed HTML. |
Strips all HTML from a text string.
This function expects slashed data.
(string) (Required) Content to strip all HTML from.
(string) Filtered content without any HTML.
File: wp-includes/kses.php
function wp_filter_nohtml_kses( $data ) { return addslashes( wp_kses( stripslashes( $data ), 'strip' ) ); }
Version | Description |
---|---|
2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_filter_nohtml_kses