浏览代码

Tasks #1297 and #2541 - HTMLPurifier: Activating the setting "CSS.AllowTricky" because we need css-definitions like style="display: none;".

Ivan Tcholakov 14 年之前
父节点
当前提交
ce5afebd3a
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      main/inc/lib/htmlpurifier/library/HTMLPurifier.php

+ 1 - 0
main/inc/lib/htmlpurifier/library/HTMLPurifier.php

@@ -123,6 +123,7 @@ class HTMLPurifier
                 $config->set('HTML.AllowedAttributes', $attribute_anonymous);
             }
             $config->set('HTML.TidyLevel', 'light');
+            $config->set('CSS.AllowTricky', true); // We need the css definition display: none;
             $this->config = HTMLPurifier_Config::create($config);
             $this->strategy = new HTMLPurifier_Strategy_Core();
         }