From ad5f722832875b093951484e5b7c6531d97c9cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 17 May 2021 01:57:45 +0200 Subject: Hopefully fix remaining & problems. --- static/rrule.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static/rrule.js') 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; -- cgit v1.2.3