AndrolibResources.escapeForResXml(): escaping quotes.

This commit is contained in:
Ryszard Wiśniewski 2010-04-02 12:44:43 +02:00
parent 432146c8bb
commit 602fd95f8a

View File

@ -303,6 +303,7 @@ final public class AndrolibResources {
return value;
}
value = value.replace("'", "\\'");
value = value.replace("\"", "\\\"");
value = value.replace("\n", "\\n\n");
char c = value.charAt(0);
if (c == '@' || c == '#' || c == '?') {