1 : <?php
2 :
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.
12 : */
13 1 : class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
14 : {
15 :
16 : public $name = 'Presentation';
17 :
18 : public function __construct() {
19 1 : $this->addElement('b', 'Inline', 'Inline', 'Common');
20 1 : $this->addElement('big', 'Inline', 'Inline', 'Common');
21 1 : $this->addElement('hr', 'Block', 'Empty', 'Common');
22 1 : $this->addElement('i', 'Inline', 'Inline', 'Common');
23 1 : $this->addElement('small', 'Inline', 'Inline', 'Common');
24 1 : $this->addElement('sub', 'Inline', 'Inline', 'Common');
25 1 : $this->addElement('sup', 'Inline', 'Inline', 'Common');
26 1 : $this->addElement('tt', 'Inline', 'Inline', 'Common');
27 1 : }
28 :
29 : }
30 :
|