Reputation: 78004
i am trying to display STRING my car name is "abc" in textview.
it displays &qoute;abc&qoute; after running application.
i have tried decoding into " and then assigning it to TextView but it always convert " to &qoute;
can any one guide me how to solve this issue?
any help would be appriciated.
Upvotes: 1
Views: 483
Reputation: 20268
For me none of the solutions presented here earlier did not worked.
Sharing my method to do this:
<string name="filter">\"Filtruj\"</string>
Upvotes: 0
Reputation: 36484
Escape them; use "
to have quotes in XML values.
For e.g. try: android:text="" hi ""
Upvotes: 2
Reputation: 93173
I have done it escaping the "
Example:
<string name="pref_about_text">Estado del Tránsito versión \"%s\"\nCreado por:</string>
Upvotes: 2