src/String/StringUtil.php
public function convertToInlineCss(string $text, string $cssText = null)
    {
        // apply the css inliner
        $objCssInliner = new \TijsVerkoyen\CssToInlineStyles\CssToInlineStyles();

        return $objCssInliner->convert($text, $cssText);
    }
public function convertToInlineCss(string $text, string $cssText = null)
    {
        // apply the css inliner
        $objCssInliner = new \TijsVerkoyen\CssToInlineStyles\CssToInlineStyles();

        return $objCssInliner->convert($text, $cssText);
    }
public function convertToInlineCss ( string $ text , string $ cssText = null ) { // apply the css inliner $ objCssInliner = new \ TijsVerkoyen \ CssToInlineStyles \ CssToInlineStyles ( ) ; return $ objCssInliner -> convert ( $ text , $ cssText ) ; }
Convert css into inline styles.

@param string $text
@param array  $cssText the css as text (no paths allowed atm)

@return string
Convert css into inline styles .