From: Domovoy Date: Mon, 23 Jul 2012 19:22:20 +0000 (+0200) Subject: Supree the warning of DomDocument::loadHTML X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=47a5a5c03a78e829ece69912deb78ad3e3af235e;p=friendica-addons.git Supree the warning of DomDocument::loadHTML --- diff --git a/showmore/showmore.php b/showmore/showmore.php index 5b0f14a0..096fd3f7 100755 --- a/showmore/showmore.php +++ b/showmore/showmore.php @@ -70,7 +70,9 @@ function get_body_length($body) { $string = trim($body); // We need to get rid of hidden tags (display: none) - $dom = DomDocument::loadHTML($body); + + // Get rid of the warning. It would be better to have some valid html as input + $dom = @DomDocument::loadHTML($body); $xpath = new DOMXPath($dom); /*