Special character truncating text in variable
We have a story file that allows learners to take notes in a couple of fields and then email those notes to themselves. We just realized that if the learners include an & in their notes, the notes content is truncated at that point. So a learner types this in the field "These are my notes about apples & oranges." - the email they get will only say "These are my notes about apples"
var player = GetPlayer();
var subject="Emergency and Urgent Care Course";
var body="Activity Notes: "+exercisenotes1+"%0D%0AFinal Notes: "+usernotes;
body = body.replace(/\r\n?/g, '%0D%0A');
var link='mailto: '+useremail+