Remove $a = array($a) which is miscompiled by Zend OpCache.
[htmlpurifier.git] / library / HTMLPurifier / HTMLModule / Presentation.php
blob6458ce9d8831dfc4622b932b66c99d7c1c02e95a
1 <?php
3 /**
4 * XHTML 1.1 Presentation Module, defines simple presentation-related
5 * markup. Text Extension Module.
6 * @note The official XML Schema and DTD specs further divide this into
7 * two modules:
8 * - Block Presentation (hr)
9 * - Inline Presentation (b, big, i, small, sub, sup, tt)
10 * We have chosen not to heed this distinction, as content_sets
11 * provides satisfactory disambiguation.
13 class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
16 /**
17 * @type string
19 public $name = 'Presentation';
21 /**
22 * @param HTMLPurifier_Config $config
24 public function setup($config)
26 $this->addElement('hr', 'Block', 'Empty', 'Common');
27 $this->addElement('sub', 'Inline', 'Inline', 'Common');
28 $this->addElement('sup', 'Inline', 'Inline', 'Common');
29 $b = $this->addElement('b', 'Inline', 'Inline', 'Common');
30 $b->formatting = true;
31 $big = $this->addElement('big', 'Inline', 'Inline', 'Common');
32 $big->formatting = true;
33 $i = $this->addElement('i', 'Inline', 'Inline', 'Common');
34 $i->formatting = true;
35 $small = $this->addElement('small', 'Inline', 'Inline', 'Common');
36 $small->formatting = true;
37 $tt = $this->addElement('tt', 'Inline', 'Inline', 'Common');
38 $tt->formatting = true;
42 // vim: et sw=4 sts=4