2007-05-20 02:12:01 +00:00
|
|
|
<?php
|
|
|
|
|
2008-02-10 21:34:52 +00:00
|
|
|
class HTMLPurifier_HTMLModule_Tidy_Proprietary extends HTMLPurifier_HTMLModule_Tidy
|
2007-05-20 02:12:01 +00:00
|
|
|
{
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-11-25 02:24:39 +00:00
|
|
|
public $name = 'Tidy_Proprietary';
|
|
|
|
public $defaultLevel = 'light';
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-11-25 02:24:39 +00:00
|
|
|
public function makeFixes() {
|
2008-09-28 01:19:35 +00:00
|
|
|
$r = array();
|
|
|
|
$r['table@background'] = new HTMLPurifier_AttrTransform_Background();
|
|
|
|
$r['td@background'] = new HTMLPurifier_AttrTransform_Background();
|
|
|
|
$r['th@background'] = new HTMLPurifier_AttrTransform_Background();
|
|
|
|
$r['tr@background'] = new HTMLPurifier_AttrTransform_Background();
|
|
|
|
$r['thead@background'] = new HTMLPurifier_AttrTransform_Background();
|
|
|
|
$r['tfoot@background'] = new HTMLPurifier_AttrTransform_Background();
|
|
|
|
$r['tbody@background'] = new HTMLPurifier_AttrTransform_Background();
|
2009-08-28 00:06:35 +00:00
|
|
|
$r['table@height'] = new HTMLPurifier_AttrTransform_Length('height');
|
2008-09-28 01:19:35 +00:00
|
|
|
return $r;
|
2007-05-20 02:12:01 +00:00
|
|
|
}
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2007-05-20 02:12:01 +00:00
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|