]> git.wh0rd.org - tt-rss.git/blob - lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Presentation.php
8ff0b5ed7848e9872354e53ddb05d44d74f2713d
[tt-rss.git] / lib / htmlpurifier / library / HTMLPurifier / HTMLModule / Presentation.php
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 class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
14 {
15
16 public $name = 'Presentation';
17
18 public function setup($config) {
19 $this->addElement('hr', 'Block', 'Empty', 'Common');
20 $this->addElement('sub', 'Inline', 'Inline', 'Common');
21 $this->addElement('sup', 'Inline', 'Inline', 'Common');
22 $b = $this->addElement('b', 'Inline', 'Inline', 'Common');
23 $b->formatting = true;
24 $big = $this->addElement('big', 'Inline', 'Inline', 'Common');
25 $big->formatting = true;
26 $i = $this->addElement('i', 'Inline', 'Inline', 'Common');
27 $i->formatting = true;
28 $small = $this->addElement('small', 'Inline', 'Inline', 'Common');
29 $small->formatting = true;
30 $tt = $this->addElement('tt', 'Inline', 'Inline', 'Common');
31 $tt->formatting = true;
32 }
33
34 }
35
36 // vim: et sw=4 sts=4