//[tvlib](../../index.md)/[org.mjdev.tvlib.ui.toolkit](index.md)/[stringHtmlResource](string-html-resource.md) # stringHtmlResource [androidJvm]\ @[Composable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable.html) @[ReadOnlyComposable](https://developer.android.com/reference/kotlin/androidx/compose/runtime/ReadOnlyComposable.html) fun [~~stringHtmlResource~~](string-html-resource.md)(@[StringRes](https://developer.android.com/reference/kotlin/androidx/annotation/StringRes.html)id: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [AnnotatedString](https://developer.android.com/reference/kotlin/androidx/compose/ui/text/AnnotatedString.html) --- ### Deprecated Use new 'textResource' instead. #### Replace with ```kotlin textResource(id) ``` ---