diff options
author | Thomas Citharel <tcit@tcit.fr> | 2015-05-22 19:29:12 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2015-05-22 19:29:12 +0200 |
commit | d31766300a4c15acf0d6d496eb0156f2e6d3a269 (patch) | |
tree | d4cdcaaeee1214fcf51a6203a0adc912741846a0 /inc/poche/Tools.class.php | |
parent | 973085356452b3d74147a5e768907924029be331 (diff) | |
download | wallabag-d31766300a4c15acf0d6d496eb0156f2e6d3a269.tar.gz wallabag-d31766300a4c15acf0d6d496eb0156f2e6d3a269.tar.zst wallabag-d31766300a4c15acf0d6d496eb0156f2e6d3a269.zip |
added Firefox-bookmarks format import mode
Diffstat (limited to 'inc/poche/Tools.class.php')
-rwxr-xr-x | inc/poche/Tools.class.php | 11 |
1 files changed, 11 insertions, 0 deletions
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 | |||
420 | return str_replace('+', '', $token); | 420 | return str_replace('+', '', $token); |
421 | } | 421 | } |
422 | 422 | ||
423 | function get_doctype($doc) | ||
424 | { | ||
425 | $els = $doc->find('unknown'); | ||
426 | |||
427 | foreach ($els as $e => $el) | ||
428 | if ($el->parent()->tag == 'root') | ||
429 | return $el; | ||
430 | |||
431 | return NULL; | ||
432 | } | ||
433 | |||
423 | } | 434 | } |