mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-12-22 19:50:20 +00:00
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.
This commit is contained in:
parent
7b786e0214
commit
7f34be5a9a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue