HtmlSnippetText
fun HtmlSnippetText(content: String, modifier: Modifier = Modifier, verticalScrolling: Boolean = false, color: Color = MaterialTheme.colorScheme.onSurface, primaryColor: Color = MaterialTheme.colorScheme.primary, linkColor: Color = MaterialTheme.colorScheme.secondary, backgroundColor: Color = MaterialTheme.colorScheme.surface, assets: Map<String, ByteString>? = mapOf())
Displays (x)html-formatted snippet.
It is expected that text is HTML content, without html and body element. Styling can be applied using style attributes. Only certain elements and attributes are allowed (in particular, no scripting), so this should be generally safe to use with arbitrary content.
Use appinfo
attribute to inject application data, e.g. <span appinfo='version'/>
.