Class HTMLPurifier_AttrTransform_Nofollow

InheritanceHTMLPurifier_AttrTransform_Nofollow » HTMLPurifier_AttrTransform

Adds rel="nofollow" to all outbound links. This transform is only attached if Attr.Nofollow is TRUE.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() HTMLPurifier_AttrTransform_Nofollow
confiscateAttr() Retrieves and removes an attribute HTMLPurifier_AttrTransform
prependCSS() Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist. HTMLPurifier_AttrTransform
transform() HTMLPurifier_AttrTransform_Nofollow

Method Details

__construct() public method

public void __construct ( )
transform() public method

public array transform ( $attr, $config, $context )
$attr array
$config HTMLPurifier_Config
$context HTMLPurifier_Context