
Public Member Functions | |
| __construct () | |
| preFilter ($html, $config, $context) | |
| Removes inline <style> tags from HTML, saves them for later use. | |
| cleanCSS ($css, $config, $context) | |
| Takes CSS (the stuff found in <style>) and cleans it. | |
Public Attributes | |
| $name = 'ExtractStyleBlocks' | |
| Name of the filter for identification purposes. | |
Protected Member Functions | |
| styleCallback ($matches) | |
| Save the contents of CSS blocks to style matches. | |
Private Attributes | |
| $_styleMatches = array() | |
| $_tidy | |
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()
Definition at line 17 of file ExtractStyleBlocks.php.
| HTMLPurifier_Filter_ExtractStyleBlocks::__construct | ( | ) |
Definition at line 24 of file ExtractStyleBlocks.php.
| HTMLPurifier_Filter_ExtractStyleBlocks::styleCallback | ( | $ | matches | ) | [protected] |
Save the contents of CSS blocks to style matches.
| $matches | preg_replace style $matches array |
Definition at line 32 of file ExtractStyleBlocks.php.
Referenced by preFilter().
| HTMLPurifier_Filter_ExtractStyleBlocks::preFilter | ( | $ | html, | |
| $ | config, | |||
| $ | context | |||
| ) |
Removes inline <style> tags from HTML, saves them for later use.
Reimplemented from HTMLPurifier_Filter.
Definition at line 40 of file ExtractStyleBlocks.php.
References cleanCSS(), and styleCallback().
| 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 63 of file ExtractStyleBlocks.php.
References $name.
Referenced by preFilter().
| HTMLPurifier_Filter_ExtractStyleBlocks::$name = 'ExtractStyleBlocks' |
Name of the filter for identification purposes.
Reimplemented from HTMLPurifier_Filter.
Definition at line 20 of file ExtractStyleBlocks.php.
Referenced by cleanCSS().
HTMLPurifier_Filter_ExtractStyleBlocks::$_styleMatches = array() [private] |
Definition at line 21 of file ExtractStyleBlocks.php.
HTMLPurifier_Filter_ExtractStyleBlocks::$_tidy [private] |
Definition at line 22 of file ExtractStyleBlocks.php.
1.5.3