I have a string defined in an android application:
<string name="search_occurs">'{string}' occurs {times}</string>
This gives the error: Apostrophe not preceded by \ (in '{string}' occurs {times})
I've tried a number of things to fix this:
<string name="search_occurs">\'{string}\' occurs {times}</string>
<string name="search_occurs">'{string}' occurs {times}</string>
<string name="search_occurs"><![CDATA['{string}' occurs {times}]]></string>
<string name="search_occurs"><![CDATA[\'{string}\' occurs {times}]]></string>
I'm not able to get rid of the error. What am I missing?
these should both work according to http://developer.android.com/guide/topics/resources/string-resource.html#FormattingAndStyling:
<string name="search_occurs">\'{string}\' occurs {times}</string>
<string name="search_occurs">"'{string}' occurs {times}"</string>