icerockdev / moko-resources

Resources access for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
1.07k stars 120 forks source link

Support HTML in Android resources #518

Open avently opened 1 year ago

avently commented 1 year ago

For now when I have string like:

<string name="read_more">Read more in our <font color="#0088ff">GitHub repository</font>.</string>

I see this in generated resources for Android:

<string name="read_more">Read more in our GitHub repository.</string>

Which means that HTML formatting doesn't work. So no links, no font colors, nothing.

How to preserve the formatting?

ydemartino commented 1 year ago

I'm also interested in this feature, I can understand that the formatting won't be supported in iOS, but I would be nice to have it working at least in Android