Supree the warning of DomDocument::loadHTML
parent
7f34be5a9a
commit
47a5a5c03a
|
@ -70,7 +70,9 @@ function get_body_length($body) {
|
||||||
$string = trim($body);
|
$string = trim($body);
|
||||||
|
|
||||||
// We need to get rid of hidden tags (display: none)
|
// 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);
|
$xpath = new DOMXPath($dom);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue