Supree the warning of DomDocument::loadHTML

This commit is contained in:
Domovoy 2012-07-23 21:22:20 +02:00
parent 7f34be5a9a
commit 47a5a5c03a

View file

@ -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);
/*