2020-05-01 / 4110阅 / 悠然
Filters and sanitizes a parsed block to remove non-allowable HTML from block attribute values.
(WP_Block_Parser_Block)
(Required)
The parsed block object.
(array[]|string)
(Required)
An array of allowed HTML elements and attributes, or a context name such as 'post'.
(string[])
(Optional)
Allowed URL protocols.
Default value: array()
(array) The filtered and sanitized block object result.