Class HTMLPurifier_Filter_ExtractStyleBlocks
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.
- HTMLPurifier_Filter
- HTMLPurifier_Filter_ExtractStyleBlocks
Note:
See tests/HTMLPurifier/Filter/ExtractStyleBlocksTest.php for sample usage.
Note: This filter can also be used on stylesheets not included in the document--something purists would probably prefer. Just directly call HTMLPurifier_Filter_ExtractStyleBlocks->cleanCSS()
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php
Note: This filter can also be used on stylesheets not included in the document--something purists would probably prefer. Just directly call HTMLPurifier_Filter_ExtractStyleBlocks->cleanCSS()
Located at xoops_trust_path/libs/htmlpurifier/library/HTMLPurifier/Filter/ExtractStyleBlocks.php
public
|
|
protected
|
|
public
|
|
public
Cleaned
|
postFilter()
|
public
string
|
$name | 'ExtractStyleBlocks' |
#
Name of the filter for identification purposes |