$blocks->sanitize()
Sanitizes raw HTML that is stored verbatim in a block (e.g. the markdown block created from a table) with a strict allowlist to prevent stored XSS
$blocks->sanitize(string $html): string
Parameters
| Name | Type | Default |
|---|---|---|
| $htmlrequired | string |
no default value |
Return type
string
This method modifies the existing $blocks object it is applied to and returns it again.