Skip to content

Commit

Permalink
Merge pull request #107 from wrooot/master
Browse files Browse the repository at this point in the history
SPARK-1714 fix saving notes with & (patch by Alexander198961)
  • Loading branch information
wrooot committed Mar 13, 2016
2 parents 64e2472 + fe2a0f9 commit 62c3fcd
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,18 @@ public String getNotes() {
}

public void setNotes(String notes) {
this.notes = notes;
if(notes!=null)
{
this.notes=notes.replaceAll("&","&");
} else {
this.notes=notes;
}
}

public void setMyNotes(String notes) {
this.notes=notes;

}

/**
* Returns the root element name.
Expand Down Expand Up @@ -146,6 +155,12 @@ public static PrivateNotes getPrivateNotes() {
Log.error(e);
}

if(notes.getNotes() != null )
{
String note=notes.getNotes().replaceAll("&","&");
notes.setMyNotes(note);
}

return notes;
}
}

0 comments on commit 62c3fcd

Please sign in to comment.