You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Proprietary.php 1018B

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