Processor
in package
Table of Contents
- getCssFromStyleTags() : string
- Get the CSS from the style-tags in the given HTML-string
- getRules() : array<string|int, Rule>
- Get the rules from a given CSS-string
- doCleanup() : string
Methods
getCssFromStyleTags()
Get the CSS from the style-tags in the given HTML-string
public
getCssFromStyleTags(string $html) : string
Parameters
- $html : string
Return values
string —getRules()
Get the rules from a given CSS-string
public
getRules(string $css[, array<string|int, Rule> $existingRules = array() ]) : array<string|int, Rule>
Parameters
- $css : string
- $existingRules : array<string|int, Rule> = array()
Return values
array<string|int, Rule> —doCleanup()
private
doCleanup(string $css) : string
Parameters
- $css : string