WordPress at a glance
function is not described

Pelago\Emogrifier\HtmlProcessor

CssToAttributeConverter::mapCssToHtmlAttributes() private WC 1.0

Applies $styles to $node.

This method maps CSS styles to HTML attributes and adds those to the node.

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

No Hooks.

Return

null.

Usage

// private - for code of main (parent) class only
$result = $this->mapCssToHtmlAttributes( $styles, \DOMElement $node );
$styles(array) (required)
the new CSS styles taken from the global styles to be applied to this node
\DOMElement $node (required)
-

Code of CssToAttributeConverter::mapCssToHtmlAttributes() WC 5.0.0

<?php
private function mapCssToHtmlAttributes(array $styles, \DOMElement $node)
{
    foreach ($styles as $property => $value) {
        // Strip !important indicator
        $value = \trim(\str_replace('!important', '', $value));
        $this->mapCssToHtmlAttribute($property, $value, $node);
    }
}