From 072c3fc2847017c0db68cc3e83061feffc5dd030 Mon Sep 17 00:00:00 2001 From: Kieran Brahney Date: Thu, 20 May 2021 21:42:41 +0100 Subject: [PATCH] Add LIBXML_PARSEHUGE --- src/CssToInlineStyles.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CssToInlineStyles.php b/src/CssToInlineStyles.php index 3268c5f..912805d 100644 --- a/src/CssToInlineStyles.php +++ b/src/CssToInlineStyles.php @@ -113,7 +113,7 @@ protected function createDomDocumentFromHtml($html) { $document = new \DOMDocument('1.0', 'UTF-8'); $internalErrors = libxml_use_internal_errors(true); - $document->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8')); + $document->loadHTML(mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8'), LIBXML_PARSEHUGE); libxml_use_internal_errors($internalErrors); $document->formatOutput = true;