diff --git a/app/src/main/java/io/legado/app/utils/StringExtensions.kt b/app/src/main/java/io/legado/app/utils/StringExtensions.kt index ae881eb64..b3d599860 100644 --- a/app/src/main/java/io/legado/app/utils/StringExtensions.kt +++ b/app/src/main/java/io/legado/app/utils/StringExtensions.kt @@ -33,7 +33,7 @@ fun String?.isJsonArray(): Boolean = } ?: false fun String?.htmlFormat(): String = - this?.replace("(?i)<(br[\\s/]*|/*p\\b.*?|/*div\\b.*?)>".toRegex(), "\n") + this?.replace("]*>".toRegex(), "\n") ?.replace("<[script>]*.*?>| ".toRegex(), "") ?.replace("\\s*\\n+\\s*".toRegex(), "\n  ") ?.replace("^[\\n\\s]+".toRegex(), "  ")