Strict.php 616 B

123456789101112131415161718192021
  1. <?php
  2. class HTMLPurifier_HTMLModule_Tidy_Strict extends HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4
  3. {
  4. public $name = 'Tidy_Strict';
  5. public $defaultLevel = 'light';
  6. public function makeFixes() {
  7. $r = parent::makeFixes();
  8. $r['blockquote#content_model_type'] = 'strictblockquote';
  9. return $r;
  10. }
  11. public $defines_child_def = true;
  12. public function getChildDef($def) {
  13. if ($def->content_model_type != 'strictblockquote') return parent::getChildDef($def);
  14. return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model);
  15. }
  16. }
  17. // vim: et sw=4 sts=4