We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92d8854 commit bd21fa7Copy full SHA for bd21fa7
View/Helper/InlineCssHelper.php
@@ -15,6 +15,12 @@ public function afterLayout($layoutFile) {
15
16
$content = $this->_View->Blocks->get('content');
17
18
+ // We only want to apply inline CSS to HTML emails, so first check if
19
+ // the content is HTML before proceeding.
20
+ if ($this->isHtml($content) === false) {
21
+ return;
22
+ }
23
+
24
if (!isset($this->InlineCss)) {
25
$this->InlineCss = new CssToInlineStyles();
26
}
0 commit comments