HTMLPurifier 4.4.0
|
00001 <?php 00002 00006 class HTMLPurifier_HTMLModule_Tidy_Name extends HTMLPurifier_HTMLModule_Tidy 00007 { 00008 public $name = 'Tidy_Name'; 00009 public $defaultLevel = 'heavy'; 00010 public function makeFixes() { 00011 00012 $r = array(); 00013 00014 // @name for img, a ----------------------------------------------- 00015 // Technically, it's allowed even on strict, so we allow authors to use 00016 // it. However, it's deprecated in future versions of XHTML. 00017 $r['img@name'] = 00018 $r['a@name'] = new HTMLPurifier_AttrTransform_Name(); 00019 00020 return $r; 00021 } 00022 } 00023 00024 // vim: et sw=4 sts=4