Skip to content

Commit

Permalink
Merge pull request #149 from benevolt/master
Browse files Browse the repository at this point in the history
skip errors for html2text
  • Loading branch information
asahasrabuddhe authored Dec 27, 2022
2 parents 3437fe6 + bde260b commit 5d68fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Process/MJML.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down

0 comments on commit 5d68fc8

Please sign in to comment.