Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

CssInliner::parseCssDeclarationsBlock( string $cssDeclarationsBlock )

Parses a CSS declaration block into property name/value pairs.


Description Description

Example:

The declaration block

"color: #000; font-weight: bold;"

will be parsed into the following array:

"color" => "#000" "font-weight" => "bold"


Parameters Parameters

$cssDeclarationsBlock

(Required) the CSS declarations block without the curly braces, may be empty


Top ↑

Return Return

(string[]) the CSS declarations with the property names as array keys and the property values as array values


Top ↑

Source Source

File: vendor/pelago/emogrifier/src/Emogrifier/CssInliner.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.