diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-07-10 21:24:27 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-07-10 21:24:27 +0200 |
commit | 65e7ebe2430f30b5b873bc968821ae9cbda72ccc (patch) | |
tree | 53ea97d57640f26ab4485d7fe83b2b8ab6e634b9 /modules | |
parent | ba048a22078bfc7a88c79020447e8cda47cd7f40 (diff) |
lijst: fix html escaping
Diffstat (limited to 'modules')
-rw-r--r-- | modules/lijst/lijst.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lijst/lijst.js b/modules/lijst/lijst.js index fb1c70c..67eef55 100644 --- a/modules/lijst/lijst.js +++ b/modules/lijst/lijst.js @@ -22,7 +22,7 @@ function render(res){ var html=fs.readFileSync(moddir+"/lijst.html")+""; var s=""; for(var i=0;i<lijst.length;i++){ - s+="<li>"+escape(lijst[i])+"</li>\n"; + s+="<li>"+lijst[i].replace(/</g,"<")+"</li>\n"; } html=html.replace("<!--[[LIJST_ITEMS]]-->",s); res.send(html); |