]> git.immae.eu Git - github/wallabag/wallabag.git/blame_incremental - inc/3rdparty/htmlpurifier/HTMLPurifier/HTMLModule/Tidy/Proprietary.php
[add] HTML Purifier added to clean code
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / HTMLModule / Tidy / Proprietary.php
... / ...
CommitLineData
1<?php\r
2\r
3class HTMLPurifier_HTMLModule_Tidy_Proprietary extends HTMLPurifier_HTMLModule_Tidy\r
4{\r
5\r
6 /**\r
7 * @type string\r
8 */\r
9 public $name = 'Tidy_Proprietary';\r
10\r
11 /**\r
12 * @type string\r
13 */\r
14 public $defaultLevel = 'light';\r
15\r
16 /**\r
17 * @return array\r
18 */\r
19 public function makeFixes()\r
20 {\r
21 $r = array();\r
22 $r['table@background'] = new HTMLPurifier_AttrTransform_Background();\r
23 $r['td@background'] = new HTMLPurifier_AttrTransform_Background();\r
24 $r['th@background'] = new HTMLPurifier_AttrTransform_Background();\r
25 $r['tr@background'] = new HTMLPurifier_AttrTransform_Background();\r
26 $r['thead@background'] = new HTMLPurifier_AttrTransform_Background();\r
27 $r['tfoot@background'] = new HTMLPurifier_AttrTransform_Background();\r
28 $r['tbody@background'] = new HTMLPurifier_AttrTransform_Background();\r
29 $r['table@height'] = new HTMLPurifier_AttrTransform_Length('height');\r
30 return $r;\r
31 }\r
32}\r
33\r
34// vim: et sw=4 sts=4\r