Pelago\Emogrifier::splitCssAndMediaQuery
Splits input CSS code to an array where:
- key "css" will be contains clean CSS code - key "media" will be contains all valuable media queries Example: The CSS code "@import "file.css"; h1 { color:red; } @media { h1 {}} @media tv { h1 {}}" will be parsed into the following array: "css" => "h1 { color:red; }" "media" => "@media { h1 {}}"
Signature
private function splitCssAndMediaQuery(string
$css )
Parameters
$css
— string
Returns
- array