XOOPS 2.5.6
Final
|
Public Member Functions | |
__construct () | |
cleanCSS ($css, $config, $context) | |
preFilter ($html, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_Filter | |
postFilter ($html, $config, $context) | |
preFilter ($html, $config, $context) | |
Public Attributes | |
$name = 'ExtractStyleBlocks' | |
Public Attributes inherited from HTMLPurifier_Filter | |
$name | |
Protected Member Functions | |
styleCallback ($matches) | |
Private Attributes | |
$_class_attrdef | |
$_enum_attrdef | |
$_id_attrdef | |
$_styleMatches = array() | |
$_tidy | |
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.
Definition at line 23 of file ExtractStyleBlocks.php.
HTMLPurifier_Filter_ExtractStyleBlocks::__construct | ( | ) |
Definition at line 34 of file ExtractStyleBlocks.php.
HTMLPurifier_Filter_ExtractStyleBlocks::cleanCSS | ( | $css, | |
$config, | |||
$context | |||
) |
Takes CSS (the stuff found in <style>) and cleans it.
$css | CSS styling to clean |
$config | Instance of HTMLPurifier_Config |
$context | Instance of HTMLPurifier_Context |
Definition at line 76 of file ExtractStyleBlocks.php.
References $_class_attrdef, $_enum_attrdef, $_id_attrdef, $config, $i, $j, $name, $ret, and $sel.
Referenced by preFilter().
HTMLPurifier_Filter_ExtractStyleBlocks::preFilter | ( | $html, | |
$config, | |||
$context | |||
) |
Removes inline <style> tags from HTML, saves them for later use
Definition at line 53 of file ExtractStyleBlocks.php.
References $_styleMatches, $config, $html, and cleanCSS().
|
protected |
Save the contents of CSS blocks to style matches
$matches | preg_replace style $matches array |
Definition at line 45 of file ExtractStyleBlocks.php.
|
private |
Definition at line 31 of file ExtractStyleBlocks.php.
Referenced by cleanCSS().
|
private |
Definition at line 32 of file ExtractStyleBlocks.php.
Referenced by cleanCSS().
|
private |
Definition at line 30 of file ExtractStyleBlocks.php.
Referenced by cleanCSS().
|
private |
Definition at line 27 of file ExtractStyleBlocks.php.
Referenced by preFilter().
|
private |
Definition at line 28 of file ExtractStyleBlocks.php.
HTMLPurifier_Filter_ExtractStyleBlocks::$name = 'ExtractStyleBlocks' |
Definition at line 26 of file ExtractStyleBlocks.php.
Referenced by cleanCSS().