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