wp_pre_kses_block_attributes


wp_pre_kses_block_attributes ( $string, $allowed_html, $allowed_protocols )

Parameters:
  • (string) string 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

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

Related Functions

wp_kses_uri_attributes, serialize_block_attributes, wp_kses_one_attr, wp_pre_kses_less_than, wp_kses_check_attr_val

Top Google Results

User discussions

wpseek mobile