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