diff --git a/src/Process/MJML.php b/src/Process/MJML.php index fd62c89..9616c3f 100644 --- a/src/Process/MJML.php +++ b/src/Process/MJML.php @@ -96,7 +96,7 @@ public function renderHTML() */ public function renderText() { - return new HtmlString(html_entity_decode(preg_replace("/[\r\n]{2,}/", "\n\n", Html2Text::convert($this->renderHTML())), ENT_QUOTES, 'UTF-8')); + return new HtmlString(html_entity_decode(preg_replace("/[\r\n]{2,}/", "\n\n", Html2Text::convert($this->renderHTML(), ['ignore_errors' => true])), ENT_QUOTES, 'UTF-8')); } /**