HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier/HTMLModule/TargetBlank.php
Go to the documentation of this file.
00001 <?php
00002 
00007 class HTMLPurifier_HTMLModule_TargetBlank extends HTMLPurifier_HTMLModule
00008 {
00009 
00010     public $name = 'TargetBlank';
00011 
00012     public function setup($config) {
00013         $a = $this->addBlankElement('a');
00014         $a->attr_transform_post[] = new HTMLPurifier_AttrTransform_TargetBlank();
00015     }
00016 
00017 }
00018 
00019 // vim: et sw=4 sts=4