Skip to content

Commit

Permalink
Add LIBXML_PARSEHUGE
Browse files Browse the repository at this point in the history
  • Loading branch information
bytestream committed May 20, 2021
1 parent b43b05c commit 072c3fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CssToInlineStyles.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 072c3fc

Please sign in to comment.