]> git.wh0rd.org - tt-rss.git/blob - lib/htmlpurifier/library/HTMLPurifier/HTMLModule/Tidy/Proprietary.php
14c15c4a062ea5e34ab8166aee45be678fe37754
[tt-rss.git] / lib / htmlpurifier / library / HTMLPurifier / HTMLModule / Tidy / Proprietary.php
1 <?php
2
3 class HTMLPurifier_HTMLModule_Tidy_Proprietary extends HTMLPurifier_HTMLModule_Tidy
4 {
5
6 public $name = 'Tidy_Proprietary';
7 public $defaultLevel = 'light';
8
9 public function makeFixes() {
10 $r = array();
11 $r['table@background'] = new HTMLPurifier_AttrTransform_Background();
12 $r['td@background'] = new HTMLPurifier_AttrTransform_Background();
13 $r['th@background'] = new HTMLPurifier_AttrTransform_Background();
14 $r['tr@background'] = new HTMLPurifier_AttrTransform_Background();
15 $r['thead@background'] = new HTMLPurifier_AttrTransform_Background();
16 $r['tfoot@background'] = new HTMLPurifier_AttrTransform_Background();
17 $r['tbody@background'] = new HTMLPurifier_AttrTransform_Background();
18 $r['table@height'] = new HTMLPurifier_AttrTransform_Length('height');
19 return $r;
20 }
21
22 }
23
24 // vim: et sw=4 sts=4