wp_filter_nohtml_kses( string $data )

Strips all HTML from a text string.


Description Description

This function expects slashed data.


Parameters Parameters

$data

(string) (Required) Content to strip all HTML from.


Top ↑

Return Return

(string) Filtered content without any HTML.


Top ↑

Source Source

File: wp-includes/kses.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

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