wp_kses_split
wp_kses_split ( $content, $allowed_html, $allowed_protocols )
Parameters:- (string) content Content to filter.
- (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.
- (string[]) allowed_protocols Array of allowed URL protocols.
Returns:- (string) Content with fixed HTML tags
Defined at:Change Log: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Searches for HTML tags, no matter how malformed.It also matches stray `>` characters.