WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp kses split

Description

Searches for HTML tags, no matter how malformed.

It also matches stray ">" characters.

Usage

<?php wp_kses_split$string$allowed_html$allowed_protocols ?>

Parameters

$string
(string) (required) Content to filter
Default: None
$allowed_html
(array) (required) Allowed HTML elements
Default: None
$allowed_protocols
(array) (required) Allowed protocols to keep
Default: None

Return Values

(string) 
Content with fixed HTML tags

Examples

Notes

Change Log

Since: 1.0.0

Source File

wp_kses_split() is located in wp-includes/kses.php.

Related

See also index of Function Reference and index of Template Tags.