You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the library replaces very well known from Android View Html.fromHtml() as one of the better ones currently available html parser.
However, many people are not interested in editing HTML, so usage RichTextEditor(readonly=true) is slightly unnecessary. Perhaps it would be best to separate parsing html to AnnotatedString into separate library artifact?
Then we could use material3 components like Text(AnnotatedStringHtmlParser.parse(content))
The text was updated successfully, but these errors were encountered:
Hi,
Sorry for late reply.
Makes sense, I will think about it.
Also, you can use RichText composable for read-only, it handles links under the hood and it may handle other things in the future such as images.
I noticed that the library replaces very well known from Android View
Html.fromHtml()
as one of the better ones currently available html parser.However, many people are not interested in editing HTML, so usage RichTextEditor(readonly=true) is slightly unnecessary. Perhaps it would be best to separate parsing html to AnnotatedString into separate library artifact?
Then we could use material3 components like
Text(AnnotatedStringHtmlParser.parse(content))
The text was updated successfully, but these errors were encountered: