wp_pre_kses_block_attributes


wp_pre_kses_block_attributes ( $content, $allowed_html, $allowed_protocols )

Parameters:
  • (string) content Content to be run through KSES.
  • (array[]|string) allowed_html An array of allowed HTML elements and attributes, or a context name such as 'post'.
  • (string[]) allowed_protocols Array of allowed URL protocols.
Returns:
  • (string) Filtered text to run through KSES.
Defined at:

Description

Removes non-allowable HTML from parsed block attribute values when filtering in the post context.

Related Functions

wp_kses_uri_attributes, wp_get_post_content_block_attributes, serialize_block_attributes, wp_kses_one_attr, wp_sanitize_script_attributes

Top Google Results

User discussions

wpseek mobile