From e39461b90e0d04b536abd77d453476598dc7657a Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 5 Sep 2019 19:04:11 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/webbook/BookInfo.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt b/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt index 1ad81cf11..1a7c5051c 100644 --- a/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt +++ b/app/src/main/java/io/legado/app/model/webbook/BookInfo.kt @@ -6,6 +6,7 @@ import io.legado.app.data.entities.Book import io.legado.app.data.entities.BookSource import io.legado.app.model.analyzeRule.AnalyzeRule import io.legado.app.model.analyzeRule.AnalyzeUrl +import io.legado.app.utils.htmlFormat object BookInfo { @@ -50,7 +51,7 @@ object BookInfo { SourceDebug.printLog(bookSource.bookSourceUrl, 1, book.kind ?: "") SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取简介") analyzeRule.getString(infoRule.intro ?: "")?.let { - if (it.isNotEmpty()) book.intro = it + if (it.isNotEmpty()) book.intro = it.htmlFormat() } SourceDebug.printLog(bookSource.bookSourceUrl, 1, book.intro ?: "", isHtml = true) SourceDebug.printLog(bookSource.bookSourceUrl, 1, "获取字数")