HtmlSnippetText
fun HtmlSnippetText(content: String, modifier: Modifier = Modifier, 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(), appInfo: Map<String, String> = mapOf())
Displays XHTML-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.
The height of this composable is determined by the amount of the content that it displays.
Use appinfo
attribute to inject application data, e.g. <span appinfo='version'/>
.