HTMLPurifier 4.4.0
|
00001 <?php 00002 00003 class HTMLPurifier_HTMLModule_Tidy_Strict extends HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4 00004 { 00005 public $name = 'Tidy_Strict'; 00006 public $defaultLevel = 'light'; 00007 00008 public function makeFixes() { 00009 $r = parent::makeFixes(); 00010 $r['blockquote#content_model_type'] = 'strictblockquote'; 00011 return $r; 00012 } 00013 00014 public $defines_child_def = true; 00015 public function getChildDef($def) { 00016 if ($def->content_model_type != 'strictblockquote') return parent::getChildDef($def); 00017 return new HTMLPurifier_ChildDef_StrictBlockquote($def->content_model); 00018 } 00019 } 00020 00021 // vim: et sw=4 sts=4