]> _ Git - cubist_util.git/commitdiff
wait #7048 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Aug 2024 16:33:15 +0000 (18:33 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 28 Aug 2024 16:33:15 +0000 (18:33 +0200)
src/Html.php

index c14532f410157194079076558b41e3b25f9af25f..6e3a459d445126eb50c0e4ab87deb87f5b16ce82 100644 (file)
@@ -56,8 +56,9 @@ class Html
         }
         try {
             $doc = new DOMDocument('1.0', 'utf-8');
+            libxml_use_internal_errors(true);
             $doc->loadHTML('<?xml version="1.0" encoding="utf-8">' . $string);
-
+            libxml_use_internal_errors(false);
             $nodes = static::_getTextNode($doc);
             $res = [];
             foreach ($nodes as $node) {