From cc7bdf15fec8192ad062cf38c17d93f89739fbfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Tue, 20 Apr 2021 13:31:21 +0200 Subject: [PATCH] wip --- app/Utils/TemplateEngine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Utils/TemplateEngine.php b/app/Utils/TemplateEngine.php index 49b77217b171..33ee07c3c212 100644 --- a/app/Utils/TemplateEngine.php +++ b/app/Utils/TemplateEngine.php @@ -127,7 +127,7 @@ class TemplateEngine $this->body = EmailTemplateDefaults::getDefaultTemplate($this->template, $this->settings_entity->locale()); } } - + return $this; } @@ -276,7 +276,7 @@ class TemplateEngine $documents['wrapper']->saveHTML(); $documents['body'] = new \DOMDocument(); - $documents['body']->loadHTML(empty($body) ? '
' : (new CssToInlineStyles())->convert($body, $styles)); + $documents['body']->loadHTML(empty($body) ? '
' : mb_convert_encoding((new CssToInlineStyles())->convert($body, $styles), 'HTML-ENTITIES', 'UTF-8')); $table_html ='