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: - Introduced in WordPress: 5.3.1
- Deprecated in WordPress: —
Description
Removes non-allowable HTML from parsed block attribute values when filtering
in the post context.