ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
TargetNoopener.php
Go to the documentation of this file.
1 <?php
2 
8 {
12  public $name = 'TargetNoopener';
13 
17  public function setup($config) {
18  $a = $this->addBlankElement('a');
19  $a->attr_transform_post[] = new HTMLPurifier_AttrTransform_TargetNoopener();
20  }
21 }
addBlankElement($element)
Convenience function that creates a totally blank, non-standalone element.
Definition: HTMLModule.php:174
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition: HTMLModule.php:18
Module adds the target-based noopener attribute transformation to a tags.
Adds rel="noopener" to any links which target a different window than the current one...