wp_kses_split


wp_kses_split ( $string, $allowed_html, $allowed_protocols )

Parameters:
  • (string) $string Content to filter.
  • (array) $allowed_html Allowed HTML elements.
  • (string[]) $allowed_protocols Array of allowed URL protocols.
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_hair, wp_kses_data, _wp_kses_split_callback

Top Google Results

User discussions

wpseek mobile