wp_kses_split

Advertisement

Summery Summery

Searches for HTML tags, no matter how malformed.

Syntax Syntax

wp_kses_split( string $string, array $allowed_html, string[] $allowed_protocols )

Description Description

It also matches stray > characters.

Parameters Parameters

$string

(Required) Content to filter.

$allowed_html

(Required) Allowed HTML elements.

$allowed_protocols

(Required) Array of allowed URL protocols.

Return Return

(string) Content with fixed HTML tags

Source Source

File: wp-includes/kses.php

 * @return string KSES version number.
 */
function wp_kses_version() {
	return '0.2.2';
}

Advertisement

Changelog Changelog

Changelog
Version Description
1.0.0 Introduced.

Advertisement

Leave a Reply