https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
h

Hristijan

12/09/2023, 11:28 PM
hey guys, for android we have
Copy code
actual fun decodeHtml(html: String): String =
    HtmlCompat.fromHtml(html, HtmlCompat.FROM_HTML_MODE_COMPACT).toString()
what’s the equivalent for iOS?
plus one 1
f

Farhazul Mullick

12/11/2023, 6:57 AM
h

Hristijan

12/11/2023, 11:12 AM
for iOS, WASM and JVM i’ve used regex
_val_ String.removeHTMLUsingRegex _get_() = replace("<[^>]*>".toRegex(),"")
since my use case is really simple, otherwise this library looks good, thanks for sharing
👍 1
4 Views