Proprietary.php 905 B

123456789101112131415161718192021222324
  1. <?php
  2. class HTMLPurifier_HTMLModule_Tidy_Proprietary extends HTMLPurifier_HTMLModule_Tidy
  3. {
  4. public $name = 'Tidy_Proprietary';
  5. public $defaultLevel = 'light';
  6. public function makeFixes() {
  7. $r = array();
  8. $r['table@background'] = new HTMLPurifier_AttrTransform_Background();
  9. $r['td@background'] = new HTMLPurifier_AttrTransform_Background();
  10. $r['th@background'] = new HTMLPurifier_AttrTransform_Background();
  11. $r['tr@background'] = new HTMLPurifier_AttrTransform_Background();
  12. $r['thead@background'] = new HTMLPurifier_AttrTransform_Background();
  13. $r['tfoot@background'] = new HTMLPurifier_AttrTransform_Background();
  14. $r['tbody@background'] = new HTMLPurifier_AttrTransform_Background();
  15. $r['table@height'] = new HTMLPurifier_AttrTransform_Length('height');
  16. return $r;
  17. }
  18. }
  19. // vim: et sw=4 sts=4