https://kotlinlang.org logo
#compose-ios
Title
# compose-ios
k

Kwabena Berko

03/30/2024, 5:03 PM
Good day, How do we escape characters in compose multiplatform? I have this string resource and when I run the app, the string is displayed as is including the backslash:
Copy code
<string name="signup_email_confirmation_required">"You\'ll need to confirm this email later."</string>
Without the backslash, I get a Resource compilation error.
a

andrew

04/02/2024, 5:00 PM
Try using
&#39;
in lieu of
\'
Also, why are you wrapping the string in quotes?
k

Kwabena Berko

04/02/2024, 5:02 PM
Oops, that was a typo
Just tried. Failed to compile with
'
4 Views