Remove replacement characters from manga description

This commit is contained in:
Koitharu
2023-06-05 10:57:35 +03:00
parent 6dc460bc20
commit 76709dda21
5 changed files with 14 additions and 4 deletions

View File

@@ -41,6 +41,7 @@ import org.koitharu.kotatsu.core.prefs.AppSettings
import org.koitharu.kotatsu.core.util.ext.almostEquals
import org.koitharu.kotatsu.core.util.ext.asArrayList
import org.koitharu.kotatsu.core.util.ext.flatten
import org.koitharu.kotatsu.core.util.ext.sanitize
import org.koitharu.kotatsu.core.util.ext.takeMostFrequent
import org.koitharu.kotatsu.core.util.ext.toBitmapOrNull
import org.koitharu.kotatsu.core.util.ext.trySetForeground
@@ -227,7 +228,7 @@ class SuggestionsWorker @AssistedInject constructor(
).toBitmapOrNull(),
)
setSmallIcon(R.drawable.ic_stat_suggestion)
val description = manga.description?.parseAsHtml(HtmlCompat.FROM_HTML_MODE_COMPACT)
val description = manga.description?.parseAsHtml(HtmlCompat.FROM_HTML_MODE_COMPACT)?.sanitize()
if (!description.isNullOrBlank()) {
val style = NotificationCompat.BigTextStyle()
style.bigText(