Mubarack Tahir
04/28/2025, 5:20 PM@Composable
fun annotatedString(text: String): AnnotatedString {
return runCatching {
AnnotatedString.fromHtml(text)
}.getOrDefault(AnnotatedString(text))
}
here is an example of the string
"<font color='#DDDDDD'><b>Cat</b></font> and mouse are <b>friends</b> who loves <u>Kotlin</u>"ephemient
04/28/2025, 5:22 PMColton Idle
04/29/2025, 4:04 AMColton Idle
04/29/2025, 4:05 AMephemient
04/29/2025, 3:18 PMColton Idle
04/29/2025, 3:35 PM