Fix problem where stacked AttrTransforms clobber each other.
[htmlpurifier.git] / library / HTMLPurifier / HTMLModule / TargetBlank.php
blobe1305ec5db0db70fa8bc02f09006c0adc0593b5a
1 <?php
3 /**
4 * Module adds the target=blank attribute transformation to a tags. It
5 * is enabled by HTML.TargetBlank
6 */
7 class HTMLPurifier_HTMLModule_TargetBlank extends HTMLPurifier_HTMLModule
10 public $name = 'TargetBlank';
12 public function setup($config) {
13 $a = $this->addBlankElement('a');
14 $a->attr_transform_post[] = new HTMLPurifier_AttrTransform_TargetBlank();
19 // vim: et sw=4 sts=4