HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/HTMLModule/StyleAttribute.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class HTMLPurifier_HTMLModule_StyleAttribute extends HTMLPurifier_HTMLModule
00008 {
00009 
00010     public $name = 'StyleAttribute';
00011     public $attr_collections = array(
00012         // The inclusion routine differs from the Abstract Modules but
00013         // is in line with the DTD and XML Schemas.
00014         'Style' => array('style' => false), // see constructor
00015         'Core' => array(0 => array('Style'))
00016     );
00017 
00018     public function setup($config) {
00019         $this->attr_collections['Style']['style'] = new HTMLPurifier_AttrDef_CSS();
00020     }
00021 
00022 }
00023 
00024 // vim: et sw=4 sts=4