filter_block_kses_value


filter_block_kses_value ( $value, $allowed_html, $allowed_protocols = array() )

Parameters:
  • (string[]|string) value The attribute value to filter.
  • (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[]|string) The filtered and sanitized result.
Defined at:

Description

Filters and sanitizes a parsed block attribute value to remove non-allowable HTML.

Related Functions

filter_block_kses, filter_block_content, register_block_style, register_block_core_calendar, wp_filter_post_kses

Top Google Results

User discussions

wpseek mobile