WordPress Version: 5.1
/**
* Strips all HTML from a text string.
*
* This function expects slashed data.
*
* @since 2.1.0
*
* @param string $data Content to strip all HTML from.
* @return string Filtered content without any HTML.
*/
function wp_filter_nohtml_kses($data)
{
return addslashes(wp_kses(stripslashes($data), 'strip'));
}