wp_kses_split

SummerySummery

Searches for HTML tags, no matter how malformed.

Syntax

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

DescriptionDescription

It also matches stray > characters.

ParametersParameters

$string

(string) (Required) Content to filter.

$allowed_html

(array) (Required) Allowed HTML elements.

$allowed_protocols

(string[]) (Required) Array of allowed URL protocols.

ReturnReturn

(string) Content with fixed HTML tags

SourceSource

File: wp-includes/kses.php


			

ChangelogChangelog

Changelog
Version Description
1.0.0 Introduced.
Scroll to Top