可能重复:
如何在XML中转义&符号?
我写
<string name="magazine">Newspaper & Magazines</string>
Run Code Online (Sandbox Code Playgroud)
在strings.xml中
但是编译器说:
The entity name must immediately follow the '&' in the entity reference. strings.xml /OOReaderWidget/res/values line 9 Android XML Format Problem
Run Code Online (Sandbox Code Playgroud)
那么如何在strings.xml中显示"&"?谢谢!
xml ×1