![]() |
XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Fonctions membres publiques | |
__construct () | |
preFilter ($html, $config, $context) | |
cleanCSS ($css, $config, $context) | |
![]() | |
postFilter ($html, $config, $context) | |
Champs de données | |
$name = 'ExtractStyleBlocks' | |
![]() | |
$name | |
Fonctions membres protégées | |
styleCallback ($matches) | |
Attributs privés | |
$_styleMatches = array() | |
$_tidy | |
$_id_attrdef | |
$_class_attrdef | |
$_enum_attrdef | |
This filter extracts <style> blocks from input HTML, cleans them up using CSSTidy, and then places them in $purifier->context->get('StyleBlocks') so they can be used elsewhere in the document.
__construct | ( | ) |
cleanCSS | ( | $css, | |
$config, | |||
$context | |||
) |
Takes CSS (the stuff found in <style>) and cleans it.
string | $css | CSS styling to clean |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
HTMLPurifier_Exception |
preFilter | ( | $html, | |
$config, | |||
$context | |||
) |
Removes inline <style> tags from HTML, saves them for later use
string | $html | |
HTMLPurifier_Config | $config | |
HTMLPurifier_Context | $context |
Réimplémentée à partir de HTMLPurifier_Filter.
|
protected |
Save the contents of CSS blocks to style matches
array | $matches | preg_replace style $matches array |
|
private |
|
private |
|
private |
|
private |
@type array
|
private |
@type csstidy
$name = 'ExtractStyleBlocks' |
@type string