Skip to content

Commit 263205c

Browse files
committed
Simplifying the check
1 parent f297e84 commit 263205c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

WordPress/src/main/java/org/wordpress/android/ui/comments/unified/UnifiedCommentsEditViewModel.kt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,7 @@ class UnifiedCommentsEditViewModel @Inject constructor(
252252
}
253253

254254
private fun htmlToPlainText(html: String): String {
255-
return if (html.contains("<") || html.contains("&")) {
256-
htmlCompatWrapper.fromHtml(html).toString().trim()
257-
} else {
258-
html
259-
}
255+
return htmlCompatWrapper.fromHtml(html).toString().trim()
260256
}
261257

262258
private suspend fun updateComment(editedCommentEssentials: CommentEssentials) {

0 commit comments

Comments
 (0)