HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.php
Go to the documentation of this file.
00001 <?php
00002 
00013 class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
00014 {
00015 
00016     public $name = 'Presentation';
00017 
00018     public function setup($config) {
00019         $this->addElement('hr',     'Block',  'Empty',  'Common');
00020         $this->addElement('sub',    'Inline', 'Inline', 'Common');
00021         $this->addElement('sup',    'Inline', 'Inline', 'Common');
00022         $b = $this->addElement('b',      'Inline', 'Inline', 'Common');
00023         $b->formatting = true;
00024         $big = $this->addElement('big',    'Inline', 'Inline', 'Common');
00025         $big->formatting = true;
00026         $i = $this->addElement('i',      'Inline', 'Inline', 'Common');
00027         $i->formatting = true;
00028         $small = $this->addElement('small',  'Inline', 'Inline', 'Common');
00029         $small->formatting = true;
00030         $tt = $this->addElement('tt',     'Inline', 'Inline', 'Common');
00031         $tt->formatting = true;
00032     }
00033 
00034 }
00035 
00036 // vim: et sw=4 sts=4