Hello Team I don't know if this is the right plac...
# compose-ios
m
Hello Team I don't know if this is the right place to ask this. I have a string that is server driven, this string is an HTML text that has most of the html tags like, b/b,u/u,font color=#000000/font. How do I render this text using AnnotatedString ? I have tried this, but it only works for android, it doesn't work for iOS.
Copy code
@Composable
fun annotatedString(text: String): AnnotatedString {
    return runCatching {
        AnnotatedString.fromHtml(text)
    }.getOrDefault(AnnotatedString(text))
}
here is an example of the string "font color='#DDDDDD'bCat/b/font and mouse are bfriends/b who loves uKotlin/u"
a
Try to ask the question in the #CJLTWPH7S channel
1