forked from wallabag/wallabag
added Firefox-bookmarks format import mode
This commit is contained in:
@ -420,4 +420,15 @@ final class Tools
|
||||
return str_replace('+', '', $token);
|
||||
}
|
||||
|
||||
function get_doctype($doc)
|
||||
{
|
||||
$els = $doc->find('unknown');
|
||||
|
||||
foreach ($els as $e => $el)
|
||||
if ($el->parent()->tag == 'root')
|
||||
return $el;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user