]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / HTMLModule / Presentation.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3/**\r
4 * XHTML 1.1 Presentation Module, defines simple presentation-related\r
5 * markup. Text Extension Module.\r
6 * @note The official XML Schema and DTD specs further divide this into\r
7 * two modules:\r
8 * - Block Presentation (hr)\r
9 * - Inline Presentation (b, big, i, small, sub, sup, tt)\r
10 * We have chosen not to heed this distinction, as content_sets\r
11 * provides satisfactory disambiguation.\r
12 */\r
13class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule\r
14{\r
15\r
16 /**\r
17 * @type string\r
18 */\r
19 public $name = 'Presentation';\r
20\r
21 /**\r
22 * @param HTMLPurifier_Config $config\r
23 */\r
24 public function setup($config)\r
25 {\r
26 $this->addElement('hr', 'Block', 'Empty', 'Common');\r
27 $this->addElement('sub', 'Inline', 'Inline', 'Common');\r
28 $this->addElement('sup', 'Inline', 'Inline', 'Common');\r
29 $b = $this->addElement('b', 'Inline', 'Inline', 'Common');\r
30 $b->formatting = true;\r
31 $big = $this->addElement('big', 'Inline', 'Inline', 'Common');\r
32 $big->formatting = true;\r
33 $i = $this->addElement('i', 'Inline', 'Inline', 'Common');\r
34 $i->formatting = true;\r
35 $small = $this->addElement('small', 'Inline', 'Inline', 'Common');\r
36 $small->formatting = true;\r
37 $tt = $this->addElement('tt', 'Inline', 'Inline', 'Common');\r
38 $tt->formatting = true;\r
39 }\r
40}\r
41\r
42// vim: et sw=4 sts=4\r