correct DOM node list access
This commit is contained in:
parent
136afff5f1
commit
fc587be483
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@
|
|||
foreach($dom->getElementsByTagName('a') as $link) {
|
||||
$link->setAttribute('target', '_blank');
|
||||
}
|
||||
$body = $dom->getElementsByTagName('body')[0];
|
||||
$body = $dom->getElementsByTagName('body')->item(0);
|
||||
$string = $dom->saveHTML($body);
|
||||
|
||||
return trim(substr($string, 6, strlen($string) - 13));
|
||||
|
|
Loading…
Add table
Reference in a new issue