I write
<string name="magazine">Newspaper & Magazines</string> in file strings.xml.
But the compiler says:
The entity name must immediately follow the '&' in the entity reference. strings.xml /OOReaderWidget/res/values line 9 Android XML Format Problem
How can I show a "&" in strings.xml?
13 Answers
Use & in place of &.
Change it to:
<string name="magazine">Newspaper & Magazines</string> 1& → &
< → <
> → >
You can use & in place of &