ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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}
An exception for terminatinating execution or to throw for unit testing.
Adds rel="noreferrer" to any links which target a different window than the current one.
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:19
addBlankElement($element)
Convenience function that creates a totally blank, non-standalone element.
Definition: HTMLModule.php:174