From 57dc362d5dcc1b842d6f8a97940a217efc5875ac Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 9 Sep 2016 14:29:20 +0200 Subject: whitelist button tag in htmlpurifier --- include/text.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/text.php b/include/text.php index 8b2e8b9e0..9c4a4a5c5 100644 --- a/include/text.php +++ b/include/text.php @@ -234,12 +234,15 @@ function purify_html($s, $allow_position = false) { $def->info_global_attr['data-offset-bottom'] = new HTMLPurifier_AttrDef_Text; //some html5 elements + //Block $def->addElement('section', 'Block', 'Flow', 'Common'); $def->addElement('nav', 'Block', 'Flow', 'Common'); $def->addElement('article', 'Block', 'Flow', 'Common'); $def->addElement('aside', 'Block', 'Flow', 'Common'); $def->addElement('header', 'Block', 'Flow', 'Common'); $def->addElement('footer', 'Block', 'Flow', 'Common'); + //Inline + $def->addElement('button', 'Inline', 'Inline', 'Common'); if($allow_position) { -- cgit v1.2.3