fix various html parse errors
This commit is contained in:
parent
bef7a5d66b
commit
01164c8c2f
6 changed files with 42 additions and 15 deletions
|
@ -53,7 +53,12 @@ function parse_event($h) {
|
|||
|
||||
$ret = array();
|
||||
|
||||
$dom = HTML5_Parser::parse($h);
|
||||
|
||||
try {
|
||||
$dom = HTML5_Parser::parse($h);
|
||||
} catch (DOMException $e) {
|
||||
logger('parse_event: parse error: ' . $e);
|
||||
}
|
||||
|
||||
if(! $dom)
|
||||
return $ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue