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: - Introduced in WordPress: 5.3.1
- Deprecated in WordPress: —
Description
Filters and sanitizes a parsed block attribute value to remove non-allowable
HTML.