extends |
HTMLPurifier_TagTransform |
---|
Transforms FONT tags to the proper form (SPAN with CSS styling)
This transformation takes the three proprietary attributes of FONT and transforms them into their corresponding CSS attributes. These are color, face, and size.
Methods | ||||||||
---|---|---|---|---|---|---|---|---|
public
|
transform(
HTMLPurifier_Token_Tag $tag,
HTMLPurifier_Config $config,
HTMLPurifier_Context $context,
): HTMLPurifier_Token_End|string
Transforms the obsolete tag into the valid tag.
Transforms the obsolete tag into the valid tag. Parameters
Implements |
# |
Methods inherited from HTMLPurifier_TagTransform |
---|
prependCSS() |
Properties | |||
---|---|---|---|
public
|
|
$transform_to = 'span'
|
# |
protected
|
|
$_size_lookup = [
'0' => 'xx-small',
'1' => 'xx-small',
'2' => 'small',
'3' => 'medium',
'4' => 'large',
'5' => 'x-large',
'6' => 'xx-large',
'7' => '300%',
'-1' => 'smaller',
'-2' => '60%',
'+1' => 'larger',
'+2' => '150%',
'+3' => '200%',
'+4' => '300%',
]
|
# |