From dd81f7a5eb9dfbcf314908ab1b5d36fbeb121081 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 28 Aug 2024 18:33:15 +0200 Subject: [PATCH] wait #7048 @1 --- src/Html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Html.php b/src/Html.php index c14532f..6e3a459 100644 --- a/src/Html.php +++ b/src/Html.php @@ -56,8 +56,9 @@ class Html } try { $doc = new DOMDocument('1.0', 'utf-8'); + libxml_use_internal_errors(true); $doc->loadHTML('' . $string); - + libxml_use_internal_errors(false); $nodes = static::_getTextNode($doc); $res = []; foreach ($nodes as $node) { -- 2.39.5