2010-09-09 03:14:17 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
class HTMLPurifier_HTMLModule_Tidy_Proprietary extends HTMLPurifier_HTMLModule_Tidy
|
|
|
|
{
|
|
|
|
|
2016-02-09 10:06:17 +00:00
|
|
|
/**
|
|
|
|
* @type string
|
|
|
|
*/
|
2010-09-09 03:14:17 +00:00
|
|
|
public $name = 'Tidy_Proprietary';
|
2016-02-09 10:06:17 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type string
|
|
|
|
*/
|
2010-09-09 03:14:17 +00:00
|
|
|
public $defaultLevel = 'light';
|
|
|
|
|
2016-02-09 10:06:17 +00:00
|
|
|
/**
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function makeFixes()
|
|
|
|
{
|
2010-09-09 03:14:17 +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();
|
|
|
|
$r['table@height'] = new HTMLPurifier_AttrTransform_Length('height');
|
|
|
|
return $r;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// vim: et sw=4 sts=4
|