Fixed the double quote issue with comic props json file storage

This commit is contained in:
Tejaswi 2013-06-03 15:40:50 +05:30
parent 626e75b88e
commit e61f619051
1 changed files with 4 additions and 2 deletions

View File

@ -132,10 +132,12 @@ public final class Strip {
sb.append(", \"mNextUid\":\"" + mNextUid + "\"");
}
if(mTitle != null) {
sb.append(", \"mTitle\":\"" + mTitle + "\"");
String temp = mTitle.replaceAll("\"", "\\\"");
sb.append(", \"mTitle\":\"" + temp + "\"");
}
if(mText != null) {
sb.append(", \"mText\":\"" + mText + "\"");
String temp = mText.replaceAll("\"", "\\\"");
sb.append(", \"mText\":\"" + temp + "\"");
}
sb.append("}");
}