diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-23 21:07:32 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-23 21:07:32 +0200 |
commit | 70c39d16185698c0cc937cc4104694cd97e36d33 (patch) | |
tree | ab35a3199bde62fe58b69bcc2f4649152a88b940 /inc/poche | |
parent | ffc966d72fa2b5016e143d490994459ff4591571 (diff) | |
download | wallabag-70c39d16185698c0cc937cc4104694cd97e36d33.tar.gz wallabag-70c39d16185698c0cc937cc4104694cd97e36d33.tar.zst wallabag-70c39d16185698c0cc937cc4104694cd97e36d33.zip |
tabs2spaces
Diffstat (limited to 'inc/poche')
-rw-r--r-- | inc/poche/Url.class.php | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/inc/poche/Url.class.php b/inc/poche/Url.class.php index 36fdd0f5..3c74fb43 100644 --- a/inc/poche/Url.class.php +++ b/inc/poche/Url.class.php | |||
@@ -65,13 +65,14 @@ class Url | |||
65 | $tidy = tidy_parse_string($html, array(), 'UTF8'); | 65 | $tidy = tidy_parse_string($html, array(), 'UTF8'); |
66 | $tidy->cleanRepair(); | 66 | $tidy->cleanRepair(); |
67 | 67 | ||
68 | //Warning: tidy might fail so, ensure there is still a content | 68 | //Warning: tidy might fail so, ensure there is still a content |
69 | $body = $tidy->body(); | 69 | $body = $tidy->body(); |
70 | 70 | ||
71 | //hasChildren does not seem to work, just check the string | 71 | //hasChildren does not seem to work, just check the string |
72 | //returned (and do not forget to clean the white spaces) | 72 | //returned (and do not forget to clean the white spaces) |
73 | if (preg_replace('/\s+/', '', $body->value) !== "<body></body>") | 73 | if (preg_replace('/\s+/', '', $body->value) !== "<body></body>") { |
74 | $html = $tidy->value; | 74 | $html = $tidy->value; |
75 | } | ||
75 | } | 76 | } |
76 | 77 | ||
77 | $parameters = array(); | 78 | $parameters = array(); |