fix: 删除Epub文件正文读取的一些不必要信息

pull/2039/head
谢意帆 2 years ago
parent 0ff5e700b7
commit 7611d9a798
  1. 2
      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)) elements.add(getBody(res, startFragmentId, endFragmentId))
} }
} }
//title标签中的内容不需要显示在正文中,去除
elements.select("title").remove()
var html = elements.outerHtml() var html = elements.outerHtml()
val tag = Book.rubyTag val tag = Book.rubyTag
if (book.getDelTag(tag)) { if (book.getDelTag(tag)) {

Loading…
Cancel
Save