root/afridex/plugins/Flutter/purifier_lib/HTMLPurifier/HTMLModule/Presentation.php @ 23

Revision 21, 1.1 kB (checked in by admin, 18 years ago)
Line 
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 */
13class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
14{
15   
16    public $name = 'Presentation';
17   
18    public function __construct() {
19        $this->addElement('b',      'Inline', 'Inline', 'Common');
20        $this->addElement('big',    'Inline', 'Inline', 'Common');
21        $this->addElement('hr',     'Block',  'Empty',  'Common');
22        $this->addElement('i',      'Inline', 'Inline', 'Common');
23        $this->addElement('small',  'Inline', 'Inline', 'Common');
24        $this->addElement('sub',    'Inline', 'Inline', 'Common');
25        $this->addElement('sup',    'Inline', 'Inline', 'Common');
26        $this->addElement('tt',     'Inline', 'Inline', 'Common');
27    }
28   
29}
30
Note: See TracBrowser for help on using the browser.