diff --git a/content/static/script/membership.js b/content/static/script/membership.js index d57433367..ae92a11bd 100644 --- a/content/static/script/membership.js +++ b/content/static/script/membership.js @@ -1,5 +1,6 @@ -function escape(s='') { - return s.replace(/&/g, "&") +function escape(s) { + return s.toString() + .replace(/&/g, "&") .replace(//g, ">"); } @@ -53,6 +54,9 @@ $('.membership-form').each(function() { var note = getText('note'); if (note) xml += ' ' + escape(note) + '\n'; + var dtg = getText('date'); + if (dtg) xml += ' ' + escape(date) + '\n'; + xml += ''; // console.log('xml: ' + xml);