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:
  • 6: .

Description

Searches for HTML tags, no matter how malformed.It also matches stray `>` characters.

Related Functions

wp_kses_post, wp_kses_attr, wp_kses_data, wp_kses_hair, wp_kses_version

Top Google Results

User discussions

wpseek mobile