Browse Source

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

Ivan Tcholakov 14 years ago
parent
commit
ce5afebd3a
1 changed files with 1 additions and 0 deletions
  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();
         }