diff options
Diffstat (limited to '')
-rw-r--r-- | static/rrule.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/rrule.js b/static/rrule.js index 67a4453f..e7377370 100644 --- a/static/rrule.js +++ b/static/rrule.js @@ -2,7 +2,7 @@ function recur_xml_to_rrule(dom_element) { let rr = new RRule; for (let child of dom_element.children) { let key = child.tagName; /* freq */ - let val = child.innerHTML; /* weekly */ + let val = child.textContent; /* weekly */ rr[key] = val; } return rr; @@ -71,7 +71,7 @@ class RRule { if (! v) continue; let tag = doc.createElementNS(xcal, f); /* TODO type formatting */ - tag.innerHTML = `${v}`; + tag.textContent = `${v}`; root.appendChild(tag); } return root; |