mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
suppress errors when loading html file
This commit is contained in:
parent
df5c81334e
commit
774d17c3f9
|
@ -35,7 +35,9 @@ class SeedDMS_ConversionServiceHtmlToText extends SeedDMS_ConversionServiceBase
|
|||
|
||||
public function convert($infile, $target = null, $params = array()) {
|
||||
$d = new DOMDocument;
|
||||
libxml_use_internal_errors(true);
|
||||
$d->loadHTMLFile($infile);
|
||||
libxml_clear_errors();
|
||||
$body = $d->getElementsByTagName('body')->item(0);
|
||||
$str = '';
|
||||
foreach($body->childNodes as $childNode) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user