aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-21 15:43:14 +0100
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2014-02-21 15:43:14 +0100
commitd4949327efa15b492cab1bef3fe074290a328a17 (patch)
treee89e0322bb1f1b06d663fd10fdded21bac867e5d /inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php
parentc9bd17a1007bb78e5de0775efca01df0fb515031 (diff)
downloadwallabag-d4949327efa15b492cab1bef3fe074290a328a17.tar.gz
wallabag-d4949327efa15b492cab1bef3fe074290a328a17.tar.zst
wallabag-d4949327efa15b492cab1bef3fe074290a328a17.zip
[add] HTML Purifier added to clean code
Diffstat (limited to 'inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php')
-rw-r--r--inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php
new file mode 100644
index 00000000..968c07e9
--- /dev/null
+++ b/inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Hypertext.php
@@ -0,0 +1,40 @@
1<?php
2
3/**
4 * XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
5 */
6class HTMLPurifier_HTMLModule_Hypertext extends HTMLPurifier_HTMLModule
7{
8
9 /**
10 * @type string
11 */
12 public $name = 'Hypertext';
13
14 /**
15 * @param HTMLPurifier_Config $config
16 */
17 public function setup($config)
18 {
19 $a = $this->addElement(
20 'a',
21 'Inline',
22 'Inline',
23 'Common',
24 array(
25 // 'accesskey' => 'Character',
26 // 'charset' => 'Charset',
27 'href' => 'URI',
28 // 'hreflang' => 'LanguageCode',
29 'rel' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rel'),
30 'rev' => new HTMLPurifier_AttrDef_HTML_LinkTypes('rev'),
31 // 'tabindex' => 'Number',
32 // 'type' => 'ContentType',
33 )
34 );
35 $a->formatting = true;
36 $a->excludes = array('a' => true);
37 }
38}
39
40// vim: et sw=4 sts=4