X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FText%2FHTML.php;h=51515137e56ddd00f3d576e93f4998b7652bf025;hb=2b5f1f8bca010bb6972e7080c02230b04c7b61d3;hp=6eb02bfbe5d881ef73ebb1db4705cd41678d0234;hpb=1849bf0a120e236624ddc25461f424071ab8c8a2;p=friendica.git diff --git a/src/Content/Text/HTML.php b/src/Content/Text/HTML.php index 6eb02bfbe5..51515137e5 100644 --- a/src/Content/Text/HTML.php +++ b/src/Content/Text/HTML.php @@ -605,6 +605,10 @@ class HTML // Collecting all links $urls = self::collectURLs($message); + if (empty($message)) { + return ''; + } + @$doc->loadHTML($message, LIBXML_HTML_NODEFDTD); self::tagToBBCode($doc, 'html', [], '', '');