Definition at line 6 of file Printer.php.
◆ __construct()
HTMLPurifier_Printer::__construct |
( |
| ) |
|
Initialize $generator.
Definition at line 24 of file Printer.php.
◆ element()
HTMLPurifier_Printer::element |
( |
|
$tag, |
|
|
|
$contents, |
|
|
|
$attr = array() , |
|
|
|
$escape = true |
|
) |
| |
|
protected |
Prints a complete element with content inside
- Parameters
-
string | $tag | Tag name |
string | $contents | Element contents |
array | $attr | Tag attributes |
bool | $escape | whether or not to escape contents |
- Returns
- string
Definition at line 78 of file Printer.php.
◆ elementEmpty()
HTMLPurifier_Printer::elementEmpty |
( |
|
$tag, |
|
|
|
$attr = array() |
|
) |
| |
|
protected |
- Parameters
-
- Returns
- string
Definition at line 90 of file Printer.php.
◆ end()
HTMLPurifier_Printer::end |
( |
|
$tag | ) |
|
|
protected |
Returns an end tag
- Parameters
-
- Returns
- string
Definition at line 63 of file Printer.php.
◆ escape()
HTMLPurifier_Printer::escape |
( |
|
$string | ) |
|
|
protected |
Escapes a string for HTML output.
- Parameters
-
string | $string | String to escape |
- Returns
- string
Definition at line 131 of file Printer.php.
◆ getClass()
HTMLPurifier_Printer::getClass |
( |
|
$obj, |
|
|
|
$sec_prefix = '' |
|
) |
| |
|
protected |
Retrieves the class of an object without prefixes, as well as metadata
- Parameters
-
object | $obj | Object to determine class of |
string | $sec_prefix | Further prefix to remove |
- Returns
- string
Definition at line 170 of file Printer.php.
◆ listify()
HTMLPurifier_Printer::listify |
( |
|
$array, |
|
|
|
$polite = false |
|
) |
| |
|
protected |
Takes a list of strings and turns them into a single list
- Parameters
-
string[] | $array | List of strings |
bool | $polite | Bool whether or not to add an end before the last |
- Returns
- string
Definition at line 144 of file Printer.php.
◆ prepareGenerator()
HTMLPurifier_Printer::prepareGenerator |
( |
|
$config | ) |
|
Give generator necessary configuration if possible
- Parameters
-
Definition at line 32 of file Printer.php.
◆ row()
HTMLPurifier_Printer::row |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
protected |
Prints a simple key/value row in a table.
- Parameters
-
string | $name | Key |
mixed | $value | Value |
- Returns
- string
Definition at line 114 of file Printer.php.
◆ start()
HTMLPurifier_Printer::start |
( |
|
$tag, |
|
|
|
$attr = array() |
|
) |
| |
|
protected |
Main function that renders object or aspect of that object
- Note
- Parameters vary depending on printer Returns a start tag
- Parameters
-
string | $tag | Tag name |
array | $attr | Attribute array |
- Returns
- string
Definition at line 51 of file Printer.php.
◆ text()
HTMLPurifier_Printer::text |
( |
|
$text | ) |
|
|
protected |
◆ $config
HTMLPurifier_Printer::$config |
|
protected |
◆ $generator
HTMLPurifier_Printer::$generator |
|
protected |
The documentation for this class was generated from the following file:
- plugins/htmlpurifier/standalone/HTMLPurifier/Printer.php