I have a string that contains html, how can I display this in a Jetpack compose Text?
In a TextView I would use a Spanned and do something like:
TextView.setText(Html.fromHtml("<p>something", HtmlCompat.FROM_HTML_MODE_LEGACY)
How can I do this with Text from Jetpack compose?
AnnotatedString
. I am not aware of any existing HTML->AnnotatedString
converter libraries at this time, though I am sure that somebody will eventually create one. – CommonsWare