Core Function
View Source on Trac ↗ wp_kses_split2()
wp_kses_split2( mixed $content, mixed $allowed_html, mixed $allowed_protocols ) Callback for `wp_kses_split()` for fixing malformed HTML tags.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $content string | Content to filter. Required |
| mixed | (array[] | string) $allowed_html An array of allowed HTML elements and attributes, or a context name such as 'post'. See wp_kses_allowed_html() for the list of accepted context names. Required |
| $allowed_protocols string[] | Array of allowed URL protocols. Required |
Return Value
(string)
Fixed HTML element
Function Information
Since Version
1.0.0
Source File
wp-includes/kses.php
Advertisement