File indexing completed on 2025-02-23 05:31:59
0001 <?php 0002 0003 /** 0004 * XHTML 1.1 Target Module, defines target attribute in link elements. 0005 */ 0006 class HTMLPurifier_HTMLModule_Target extends HTMLPurifier_HTMLModule 0007 { 0008 /** 0009 * @type string 0010 */ 0011 public $name = 'Target'; 0012 0013 /** 0014 * @param HTMLPurifier_Config $config 0015 */ 0016 public function setup($config) 0017 { 0018 $elements = array('a'); 0019 foreach ($elements as $name) { 0020 $e = $this->addBlankElement($name); 0021 $e->attr = array( 0022 'target' => new HTMLPurifier_AttrDef_HTML_FrameTarget() 0023 ); 0024 } 0025 } 0026 } 0027 0028 // vim: et sw=4 sts=4