fix various html parse errors

This commit is contained in:
Friendika
2011-10-20 16:48:07 -07:00
parent bef7a5d66b
commit 01164c8c2f
6 changed files with 42 additions and 15 deletions

View File

@@ -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;