support html details and summary

This commit is contained in:
Mike Macgirvin 2024-06-10 05:32:32 +10:00
parent 9b2af03f9f
commit e5c5a7e729

View file

@ -304,12 +304,15 @@ function purify_html($s, $opts = [])
$def->addElement('aside', 'Block', 'Flow', 'Common');
$def->addElement('header', 'Block', 'Flow', 'Common');
$def->addElement('footer', 'Block', 'Flow', 'Common');
$def->addElement('details', 'Block', 'Flow', 'Common');
$def->addElement('summary', 'Block', 'Flow', 'Common');
//Inline
$def->addElement('button', 'Inline', 'Inline', 'Common');
$def->addElement('mark', 'Inline', 'Inline', 'Common');
$def->addElement('ins', 'Inline', 'Inline', 'Common');
$def->addElement('del', 'Inline', 'Inline', 'Common');
if (in_array('allow_position', $opts)) {
$cssDefinition = $config->getCSSDefinition();