extends |
HTMLPurifier_AttrTransform |
---|
Adds rel="noopener" to any links which target a different window than the current one. This is used to prevent malicious websites from silently replacing the original window, which could be used to do phishing. This transform is controlled by %HTML.TargetNoopener.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
transform(array $attr, HTMLPurifier_Config $config, HTMLPurifier_Context $context): array
Abstract: makes changes to the attributes dependent on multiple values.
Abstract: makes changes to the attributes dependent on multiple values. Parameters
ReturnsProcessed attribute array. Implements |
# |
Methods inherited from HTMLPurifier_AttrTransform |
---|
prependCSS(), confiscateAttr() |