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