diff --git a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/reader/ReaderPresenter.kt b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/reader/ReaderPresenter.kt index b4a4c1566..2bd1a43bd 100644 --- a/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/reader/ReaderPresenter.kt +++ b/shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/reader/ReaderPresenter.kt @@ -154,15 +154,12 @@ class ReaderPresenter( } private suspend fun extractArticleHtmlContent(postLink: String, content: String): String { - if (content.trim().isBlank()) return content - - val transformedContent = + val articleContent = withContext(dispatchersProvider.io) { Readability(postLink, content) }.parse().content - return if (!transformedContent.isNullOrBlank()) { - transformedContent - } else { - content - } + + if (articleContent.isNullOrBlank()) return content + + return articleContent } private fun articleShortcutClicked() {