WordPress at a glance
function is not described

Pelago

Emogrifier::getCssFromAllStyleNodes() private WC 1.0

Returns CSS content.

{} It's a method of the class: Emogrifier{}

No Hooks.

Return

String.

Usage

// private - for code of main (parent) class only
$result = $this->getCssFromAllStyleNodes();

Code of Emogrifier::getCssFromAllStyleNodes() WC 5.0.0

<?php
private function getCssFromAllStyleNodes()
{
    $styleNodes = $this->xPath->query('//style');

    if ($styleNodes === false) {
        return '';
    }

    $css = '';
    /** @var \DOMNode $styleNode */
    foreach ($styleNodes as $styleNode) {
        $css .= "\n\n" . $styleNode->nodeValue;
        $styleNode->parentNode->removeChild($styleNode);
    }

    return $css;
}