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