aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-09-09 14:29:20 +0200
committerMario Vavti <mario@mariovavti.com>2016-09-09 14:29:20 +0200
commit57dc362d5dcc1b842d6f8a97940a217efc5875ac (patch)
tree1a7c8c90d6f52d1fd38fa476f172ef38efc18c6c
parent661558dafcc2d75a3a16a93f3306123a8937bff9 (diff)
downloadvolse-hubzilla-57dc362d5dcc1b842d6f8a97940a217efc5875ac.tar.gz
volse-hubzilla-57dc362d5dcc1b842d6f8a97940a217efc5875ac.tar.bz2
volse-hubzilla-57dc362d5dcc1b842d6f8a97940a217efc5875ac.zip
whitelist button tag in htmlpurifier
-rw-r--r--include/text.php3
1 files changed, 3 insertions, 0 deletions
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) {