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, "获取字数")