wp_kses_split


wp_kses_split ( $string, $allowed_html, $allowed_protocols )

Parameters:
  • (string) $string Content to filter
  • (array) $allowed_html Allowed HTML elements
  • (array) $allowed_protocols Allowed protocols to keep
Returns:
  • (string) Content with fixed HTML tags
Defined at:

Description

Searches for HTML tags, no matter how malformed.

It also matches stray ">" characters.

Related Functions

wp_kses_split2, wp_kses_post, wp_kses_attr, _wp_kses_split_callback, wp_kses_hair

Top Google Results

User discussions

wpseek mobile