From 7f34be5a9a2e32fa9622c5d4b8836142b69a8916 Mon Sep 17 00:00:00 2001 From: Domovoy Date: Mon, 23 Jul 2012 20:46:09 +0200 Subject: [PATCH] The $node parameter of DomDocument::saveHTML was added only in php version 5.3.6. No problem, strip_tags gets out anything we don't want anyway. --- showmore/showmore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showmore/showmore.php b/showmore/showmore.php index e4f0de4e..5b0f14a0 100755 --- a/showmore/showmore.php +++ b/showmore/showmore.php @@ -85,7 +85,7 @@ function get_body_length($body) { } } // Now we can get the body of our HTML DomDocument, it contains only what is visible - $string = $dom->saveHTML($dom->getElementsByTagName('body')->item(0)); + $string = $dom->saveHTML(); $string = strip_tags($string); return strlen($string);