Emogrifier::process()
Applies $this->css to $this->domDocument.
Description #Description
This method places the CSS inline.
Return #Return
(void)
Source #Source
File: vendor/pelago/emogrifier/src/Emogrifier.php
Related #Related
Uses #Uses
Uses | Description |
---|---|
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::getNodesToExclude() |
Find the nodes that are not to be emogrified. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::removeUnprocessableTags() |
Removes empty unprocessable tags from the DOM document. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::getCssFromAllStyleNodes() |
Returns CSS content. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::removeCssComments() |
Removes comments from the supplied CSS. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::extractImportAndCharsetRules() |
Extracts |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::translateCssToXpath() |
Maps a CSS selector to an XPath query string. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::copyInlinableCssToStyleAttribute() |
Copies $cssRule into the style attribute of $node. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::copyUninlinableCssToStyleNode() |
Applies $cssRules to $this->domDocument, limited to the rules that actually apply to the document, by placing them as CSS in a |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::clearAllCaches() |
Clears all caches. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::purgeVisitedNodes() |
Purges the visited nodes. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::normalizeStyleAttributesOfAllNodes() |
Parses the document and normalizes all existing CSS attributes. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::parseCssRules() |
Extracts and parses the individual rules from a CSS string. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::fillStyleAttributesWithMergedStyles() |
Merges styles from styles attributes and style nodes and applies them to the attribute nodes |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::removeImportantAnnotationFromAllInlineStyles() |
Searches for all nodes with a style attribute and removes the “!important” annotations out of the inline style declarations, eventually by rearranging declarations. |
Used By #Used By
Used By | Description |
---|---|
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::emogrify() |
Applies $this->css to the given HTML and returns the HTML with the CSS applied. |
vendor/pelago/emogrifier/src/Emogrifier.php: Emogrifier::emogrifyBodyContent() |
Applies $this->css to the given HTML and returns only the HTML content within the |