Strips all HTML from a text string.
Description
This function expects slashed data.
Parameters
$data
stringrequired- Content to strip all HTML from.
Source
function wp_filter_nohtml_kses( $data ) {
return addslashes( wp_kses( stripslashes( $data ), 'strip' ) );
}
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.