![]() |
API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|


Public Member Functions | |
| __construct () | |
| preFilter ($html, $config, $context) | |
| cleanCSS ($css, $config, $context) | |
Public Member Functions inherited from HTMLPurifier_Filter | |
| preFilter ($html, $config, $context) | |
| postFilter ($html, $config, $context) | |
Data Fields | |
| $name = 'ExtractStyleBlocks' | |
Data Fields inherited from HTMLPurifier_Filter | |
| $name | |
Protected Member Functions | |
| styleCallback ($matches) | |
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 |
Reimplemented from HTMLPurifier_Filter.

|
protected |
Save the contents of CSS blocks to style matches
| array | $matches | preg_replace style $matches array |
| $name = 'ExtractStyleBlocks' |
@type string