From: Vincent Vanwaelscappel Date: Wed, 28 Aug 2024 16:33:15 +0000 (+0200) Subject: wait #7048 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=dd81f7a5eb9dfbcf314908ab1b5d36fbeb121081;p=cubist_util.git wait #7048 @1 --- 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) {