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 x2engine/framework/vendors/htmlpurifier/standalone/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 x2engine/framework/vendors/htmlpurifier/standalone/HTMLPurifier/Filter/ExtractStyleBlocks.php
public
|
|
protected
|
|
public
string
|
#
preFilter( string $html,
Removes inline <style> tags from HTML, saves them for later use |
public
Cleaned
|
postFilter()
|
public
string
|
$name | 'ExtractStyleBlocks' |
#
Name of the filter for identification purposes. |