wp_filter_nohtml_kses

Advertisement

Summery Summery

Strips all HTML from a text string.

Syntax Syntax

wp_filter_nohtml_kses( string $data )

Description Description

This function expects slashed data.

Parameters Parameters

$data

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

Return Return

(string) Filtered content without any HTML.

Source Source

File: wp-includes/kses.php

 */
function wp_filter_kses( $data ) {
	return addslashes( wp_kses( stripslashes( $data ), current_filter() ) );

Advertisement

Changelog Changelog

Changelog
Version Description
2.1.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.