HTMLPurifier_AttrTransform_SafeParam
Validates name/value pairs in param tags to be used in safe objects. This will only allow name values it recognizes, and pre-fill certain attributes with required values.
- Full name:
\HTMLPurifier_AttrTransform_SafeParam
- Parent class:
\HTMLPurifier_AttrTransform
Properties
name
uri
wmode
Methods
__construct
transform
Abstract: makes changes to the attributes dependent on multiple values.
Parameters:
Parameter | Type | Description |
---|---|---|
$attr |
array | |
$config |
\HTMLPurifier_Config | |
$context |
\HTMLPurifier_Context |
Inherited methods
transform
Abstract: makes changes to the attributes dependent on multiple values.
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$attr |
array | Assoc array of attributes, usually from HTMLPurifier_Token_Tag::$attr |
$config |
\HTMLPurifier_Config | Mandatory HTMLPurifier_Config object. |
$context |
\HTMLPurifier_Context | Mandatory HTMLPurifier_Context object |
Return Value:
Processed attribute array.
prependCSS
Prepends CSS properties to the style attribute, creating the attribute if it doesn't exist.
Parameters:
Parameter | Type | Description |
---|---|---|
$attr |
array | Attribute array to process (passed by reference) |
$css |
string | CSS to prepend |
confiscateAttr
Retrieves and removes an attribute
Parameters:
Parameter | Type | Description |
---|---|---|
$attr |
array | Attribute array to process (passed by reference) |
$key |
mixed | Key of attribute to confiscate |
Automatically generated on 2025-03-18