From 7611d9a7982245be2be38c473c20366fd6e7d2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=84=8F=E5=B8=86?= <1657098617@qq.com> Date: Fri, 8 Jul 2022 15:05:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4Epub=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=AD=A3=E6=96=87=E8=AF=BB=E5=8F=96=E7=9A=84=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E8=A6=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/model/localBook/EpubFile.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt index 34baad150..c855699cb 100644 --- a/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt +++ b/app/src/main/java/io/legado/app/model/localBook/EpubFile.kt @@ -155,6 +155,8 @@ class EpubFile(var book: Book) { elements.add(getBody(res, startFragmentId, endFragmentId)) } } + //title标签中的内容不需要显示在正文中,去除 + elements.select("title").remove() var html = elements.outerHtml() val tag = Book.rubyTag if (book.getDelTag(tag)) {