src/Css/Processor.php
public function getCssFromStyleTags($html)
    {
        $css = '';
        $matches = array();
        preg_match_all('|<style(?:\s.*)?>(.*)</style>|isU', $html, $matches);

        if (!empty($matches[1])) {
            foreach ($matches[1] as $match) {
                $css .= trim($match) . "\n";
            }
        }

        return $css;
    }
public function getCssFromStyleTags($html)
    {
        $css = '';
        $matches = array();
        preg_match_all('|<style(?:\s.*)?>(.*)</style>|isU', $html, $matches);

        if (!empty($matches[1])) {
            foreach ($matches[1] as $match) {
                $css .= trim($match) . "\n";
            }
        }

        return $css;
    }
public function getCssFromStyleTags ( $ html ) { $ css = '' ; $ matches = array ( ) ; preg_match_all ( '|<style(?:\s.*)?>(.*)</style>|isU' , $ html , $ matches ) ; if ( ! empty ( $ matches [ 1 ] ) ) { foreach ( $ matches [ 1 ] as $ match ) { $ css .= trim ( $ match ) . "\n" ; } } return $ css ; }
Get the CSS from the style-tags in the given HTML-string

@param string $html
@return string
Get the CSS from the style - tags in the given HTML - string