Fix html head parsing

This commit is contained in:
Shinokuni 2019-08-30 22:37:07 +02:00
parent 45dd96ec3d
commit 58f8693cc8

View File

@ -97,7 +97,7 @@ public final class HtmlParser {
Connection.Response response = Jsoup.connect(url).execute();
String body = response.body();
String head = body.substring(body.indexOf("<head>"), body.indexOf("</head>"));
String head = body.substring(body.indexOf("<head"), body.indexOf("</head>"));
long end = System.currentTimeMillis();
Log.d(TAG, "parsing time : " + (end - start));