HumHub Documentation (unofficial)

HTMLPurifier_TagTransform
in package

AbstractYes

Defines a mutation of an obsolete tag into a valid tag.

Table of Contents

Properties

$transform_to  : mixed
Tag name to transform the tag to.

Methods

transform()  : mixed
Transforms the obsolete tag into the valid tag.
prependCSS()  : mixed
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

Properties

$transform_to

Tag name to transform the tag to.

public mixed $transform_to
Tags
type

string

Methods

prependCSS()

Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.

protected prependCSS(array<string|int, mixed> &$attr, string $css) : mixed
Parameters
$attr : array<string|int, mixed>

Attribute array to process (passed by reference)

$css : string

CSS to prepend

Tags
warning

Copied over from AttrTransform, be sure to keep in sync


        
On this page

Search results