aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-02-21 15:57:10 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-02-21 15:57:10 +0100
commit99679d06884120c57f43b44e55e03595f1f87bed (patch)
treea3f2a1aa1afdaeca1386d0c6e8a75344fd2241fb /inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php
parent655214ab30ee84884dc408488b85586f36263fcb (diff)
parentd3b47e94705e17b3ba3529cbb1dc6efe69c5d2b7 (diff)
downloadwallabag-99679d06884120c57f43b44e55e03595f1f87bed.tar.gz
wallabag-99679d06884120c57f43b44e55e03595f1f87bed.tar.zst
wallabag-99679d06884120c57f43b44e55e03595f1f87bed.zip
Merge pull request #481 from wallabag/dev1.5.2
1.5.2
Diffstat (limited to 'inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php')
-rw-r--r--inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php
new file mode 100644
index 00000000..831db4cf
--- /dev/null
+++ b/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Presentation.php
@@ -0,0 +1,42 @@
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 /**
17 * @type string
18 */
19 public $name = 'Presentation';
20
21 /**
22 * @param HTMLPurifier_Config $config
23 */
24 public function setup($config)
25 {
26 $this->addElement('hr', 'Block', 'Empty', 'Common');
27 $this->addElement('sub', 'Inline', 'Inline', 'Common');
28 $this->addElement('sup', 'Inline', 'Inline', 'Common');
29 $b = $this->addElement('b', 'Inline', 'Inline', 'Common');
30 $b->formatting = true;
31 $big = $this->addElement('big', 'Inline', 'Inline', 'Common');
32 $big->formatting = true;
33 $i = $this->addElement('i', 'Inline', 'Inline', 'Common');
34 $i->formatting = true;
35 $small = $this->addElement('small', 'Inline', 'Inline', 'Common');
36 $small->formatting = true;
37 $tt = $this->addElement('tt', 'Inline', 'Inline', 'Common');
38 $tt->formatting = true;
39 }
40}
41
42// vim: et sw=4 sts=4