wp_filter_nohtml_kses

The timeline below displays how wordpress function wp_filter_nohtml_kses has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

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'));
}

WordPress Version: 3.7

/**
 * Strips all of the HTML in the content.
 *
 * @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'));
}