Keep errors internal
This commit is contained in:
parent
df978c0a75
commit
4ccd4ae24d
@ -5,7 +5,7 @@ class DOM {
|
||||
public static function getFirstImage($content)
|
||||
{
|
||||
// Disable warning
|
||||
libxml_use_internal_errors();
|
||||
libxml_use_internal_errors(true);
|
||||
$dom = new DOMDocument();
|
||||
$dom->loadHTML('<meta http-equiv="content-type" content="text/html; charset=utf-8">'.$content);
|
||||
$finder = new DomXPath($dom);
|
||||
|
Loading…
Reference in New Issue
Block a user