summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-07-10 21:24:27 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-07-10 21:24:27 +0200
commit65e7ebe2430f30b5b873bc968821ae9cbda72ccc (patch)
tree53ea97d57640f26ab4485d7fe83b2b8ab6e634b9
parentba048a22078bfc7a88c79020447e8cda47cd7f40 (diff)
lijst: fix html escaping
-rw-r--r--modules/lijst/lijst.js2
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,"&lt;")+"</li>\n";
}
html=html.replace("<!--[[LIJST_ITEMS]]-->",s);
res.send(html);