wp_filter_nohtml_kses( string $data ): string

Strips all HTML from a text string.

Description

This function expects slashed data.

Parameters

$datastringrequired
Content to strip all HTML from.

Return

string Filtered content without any HTML.

Source

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

Changelog

VersionDescription
2.1.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.