How to place "&" in xml strings file in android studio
13,421
Write:
<string name="text1">ben & angie</string>
Here is a link to the xml spec how to escape characters.
Related videos on Youtube
Author by
Hucen Farhan
Updated on June 12, 2022Comments
-
Hucen Farhan almost 2 years
I have my xml string file like this:
<string name="text1">ben & angie</string>
But it says I have an unescaped & . How to escape it?