From d31766300a4c15acf0d6d496eb0156f2e6d3a269 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 22 May 2015 19:29:12 +0200 Subject: added Firefox-bookmarks format import mode --- inc/poche/Tools.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'inc/poche/Tools.class.php') diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index c8fb2e52..1c554590 100755 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -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; + } + } -- cgit v1.2.3