WordPress at a glance
function is not described

Pelago\Emogrifier\HtmlProcessor

CssToAttributeConverter::convertCssToVisualAttributes() public WC 1.0

Maps the CSS from the style nodes to visual HTML attributes.

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

No Hooks.

Return

self. fluent interface

Usage

$CssToAttributeConverter = new CssToAttributeConverter();
$CssToAttributeConverter->convertCssToVisualAttributes();

Code of CssToAttributeConverter::convertCssToVisualAttributes() WC 5.4.1

<?php
public function convertCssToVisualAttributes()
{
    /** @var \DOMElement $node */
    foreach ($this->getAllNodesWithStyleAttribute() as $node) {
        $inlineStyleDeclarations = $this->parseCssDeclarationsBlock($node->getAttribute('style'));
        $this->mapCssToHtmlAttributes($inlineStyleDeclarations, $node);
    }

    return $this;
}