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}
An exception for terminatinating execution or to throw for unit testing.
Adds rel="noopener" to any links which target a different window than the current one.
Module adds the target-based noopener attribute transformation to a tags.
Represents an XHTML 1.1 module, with information on elements, tags and attributes.
Definition: HTMLModule.php:19
addBlankElement($element)
Convenience function that creates a totally blank, non-standalone element.
Definition: HTMLModule.php:174