]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Name.php
[add] HTML Purifier added to clean code
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / HTMLModule / Tidy / Name.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3/**\r
4 * Name is deprecated, but allowed in strict doctypes, so onl\r
5 */\r
6class HTMLPurifier_HTMLModule_Tidy_Name extends HTMLPurifier_HTMLModule_Tidy\r
7{\r
8 /**\r
9 * @type string\r
10 */\r
11 public $name = 'Tidy_Name';\r
12\r
13 /**\r
14 * @type string\r
15 */\r
16 public $defaultLevel = 'heavy';\r
17\r
18 /**\r
19 * @return array\r
20 */\r
21 public function makeFixes()\r
22 {\r
23 $r = array();\r
24 // @name for img, a -----------------------------------------------\r
25 // Technically, it's allowed even on strict, so we allow authors to use\r
26 // it. However, it's deprecated in future versions of XHTML.\r
27 $r['img@name'] =\r
28 $r['a@name'] = new HTMLPurifier_AttrTransform_Name();\r
29 return $r;\r
30 }\r
31}\r
32\r
33// vim: et sw=4 sts=4\r