Codex

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

Function Reference/wp kses split

This page redirects to an external site: https://developer.wordpress.org/reference/functions/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.