Simple utility class for working with html styles as with key-value array.
More...
|
static | parseStyleString (string $styleAttr) |
| Parse html styles string into kev-value array.
|
|
static | formStyleString (array $styles) |
| Forms style's string from kev-value array.
|
|
static | filterAllowedStyles (array $styles, array $allowedStyles, array $additional) |
| Filters style key-value array by list of allowed styles, appending them by list of additional styles.
|
|
Simple utility class for working with html styles as with key-value array.
◆ filterAllowedStyles()
static MobileFrontend\Transforms\Utils\HtmlStyleUtils::filterAllowedStyles |
( |
array | $styles, |
|
|
array | $allowedStyles, |
|
|
array | $additional ) |
|
static |
Filters style key-value array by list of allowed styles, appending them by list of additional styles.
- Parameters
-
array | $styles | key-value array of html styles |
string[] | $allowedStyles | list of allowed styles |
array | $additional | key-value array of additional styles should be added in front of list |
- Returns
- array
◆ formStyleString()
static MobileFrontend\Transforms\Utils\HtmlStyleUtils::formStyleString |
( |
array | $styles | ) |
|
|
static |
Forms style's string from kev-value array.
- Parameters
-
- Returns
- string
◆ parseStyleString()
static MobileFrontend\Transforms\Utils\HtmlStyleUtils::parseStyleString |
( |
string | $styleAttr | ) |
|
|
static |
Parse html styles
string into kev-value array.
- Parameters
-
string | $styleAttr | Element or document to rewrite images in. |
- Returns
- array
The documentation for this class was generated from the following file:
- includes/Transforms/Utils/HtmlStyleUtils.php