From: Vincent Vanwaelscappel Date: Fri, 21 Jun 2024 09:48:22 +0000 (+0200) Subject: wip #6944 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=80212651dc48912f1b2ebe7ddab7a209c8dd5046;p=cubist_util.git wip #6944 @1 --- diff --git a/src/Html.php b/src/Html.php index 397e1b6..d6bc149 100644 --- a/src/Html.php +++ b/src/Html.php @@ -52,9 +52,10 @@ class Html } try { $doc = new DOMDocument('1.0', 'utf-8'); - $doc->loadHTML('' . $string); + $doc->loadHTML('' . $string); - return static::_getTextNode($doc); + $res = static::_getTextNode($doc); + return $res; } catch (\Exception $e) { return [$string]; }