HTMLPurifier_Printer_CSSDefinition
- Full name:
\HTMLPurifier_Printer_CSSDefinition
- Parent class:
\HTMLPurifier_Printer
Properties
def
Methods
render
Parameters:
Parameter | Type | Description |
---|---|---|
$config |
\HTMLPurifier_Config |
Inherited methods
__construct
Initialize $generator.
prepareGenerator
Give generator necessary configuration if possible
Parameters:
Parameter | Type | Description |
---|---|---|
$config |
\HTMLPurifier_Config |
start
Returns a start tag
Parameters:
Parameter | Type | Description |
---|---|---|
$tag |
string | Tag name |
$attr |
array | Attribute array |
end
Returns an end tag
Parameters:
Parameter | Type | Description |
---|---|---|
$tag |
string | Tag name |
element
Prints a complete element with content inside
protected element(string $tag, string $contents, array $attr = array(), bool $escape = true): string
Parameters:
Parameter | Type | Description |
---|---|---|
$tag |
string | Tag name |
$contents |
string | Element contents |
$attr |
array | Tag attributes |
$escape |
bool | whether or not to escape contents |
elementEmpty
Parameters:
Parameter | Type | Description |
---|---|---|
$tag |
string | |
$attr |
array |
text
Parameters:
Parameter | Type | Description |
---|---|---|
$text |
string |
row
Prints a simple key/value row in a table.
Parameters:
Parameter | Type | Description |
---|---|---|
$name |
string | Key |
$value |
mixed | Value |
escape
Escapes a string for HTML output.
Parameters:
Parameter | Type | Description |
---|---|---|
$string |
string | String to escape |
listify
Takes a list of strings and turns them into a single list
Parameters:
Parameter | Type | Description |
---|---|---|
$array |
string[] | List of strings |
$polite |
bool | Bool whether or not to add an end before the last |
getClass
Retrieves the class of an object without prefixes, as well as metadata
Parameters:
Parameter | Type | Description |
---|---|---|
$obj |
object | Object to determine class of |
$sec_prefix |
string | Further prefix to remove |
Automatically generated on 2025-03-18