Class HTMLPurifier_AttrTransform_Length

InheritanceHTMLPurifier_AttrTransform_Length » HTMLPurifier_AttrTransform

Class for handling width/height length attribute transformations to CSS

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() HTMLPurifier_AttrTransform_Length
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_Length

Property Details

$cssName protected property
protected $cssName null
$name protected property
protected $name null

Method Details

__construct() public method

public void __construct ( $name, $css_name null )
transform() public method

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