HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/HTMLModule/Target.php
Go to the documentation of this file.
00001 <?php
00002 
00006 class HTMLPurifier_HTMLModule_Target extends HTMLPurifier_HTMLModule
00007 {
00008 
00009     public $name = 'Target';
00010 
00011     public function setup($config) {
00012         $elements = array('a');
00013         foreach ($elements as $name) {
00014             $e = $this->addBlankElement($name);
00015             $e->attr = array(
00016                 'target' => new HTMLPurifier_AttrDef_HTML_FrameTarget()
00017             );
00018         }
00019     }
00020 
00021 }
00022 
00023 // vim: et sw=4 sts=4