3 require_once 'HTMLPurifier/HTMLModule.php';
6 * XHTML 1.1 Presentation Module, defines simple presentation-related
7 * markup. Text Extension Module.
8 * @note The official XML Schema and DTD specs further divide this into
10 * - Block Presentation (hr)
11 * - Inline Presentation (b, big, i, small, sub, sup, tt)
12 * We have chosen not to heed this distinction, as content_sets
13 * provides satisfactory disambiguation.
15 class HTMLPurifier_HTMLModule_Presentation
extends HTMLPurifier_HTMLModule
18 var $name = 'Presentation';
20 function HTMLPurifier_HTMLModule_Presentation() {
21 $this->addElement('b', true, 'Inline', 'Inline', 'Common');
22 $this->addElement('big', true, 'Inline', 'Inline', 'Common');
23 $this->addElement('hr', true, 'Block', 'Empty', 'Common');
24 $this->addElement('i', true, 'Inline', 'Inline', 'Common');
25 $this->addElement('small', true, 'Inline', 'Inline', 'Common');
26 $this->addElement('sub', true, 'Inline', 'Inline', 'Common');
27 $this->addElement('sup', true, 'Inline', 'Inline', 'Common');
28 $this->addElement('tt', true, 'Inline', 'Inline', 'Common');