summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--model_fs.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/model_fs.js b/model_fs.js
index e90b1a0..a4d2bef 100644
--- a/model_fs.js
+++ b/model_fs.js
@@ -115,6 +115,12 @@ exports.rebuildFiles = function() {
delete ev.rrule;
delete ev.uid;
delete ev.type;
+ for(var i in ev) {
+ if(!ev.hasOwnProperty(i)) { continue; }
+ if(typeof ev[i] != 'string') { continue; }
+ ev[i] = ev[i].replace(/\\,/g, ',');
+ ev[i] = ev[i].replace(/\\n/g, '<br />');
+ }
if(typeof compEv[dateStr] == "undefined") {
compEv[dateStr] = [];
}