From 95280674e57b2944a873492395c5d2c98ffc06f6 Mon Sep 17 00:00:00 2001 From: stisa Date: Sun, 22 Oct 2017 17:24:06 +0200 Subject: [PATCH] avoid innerHtml --- forms.tmpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms.tmpl b/forms.tmpl index bd4b239..06e7268 100644 --- a/forms.tmpl +++ b/forms.tmpl @@ -195,9 +195,9 @@ var resDiv = document.createElement("DIV") resDiv.setAttribute("class", "resDiv successComp") if (res.log != "Compilation Failed\u000A"){ - resDiv.innerHTML = res.log + resDiv.textContent = res.log } else { - resDiv.innerHTML = res.compileLog + resDiv.textContent = res.compileLog resDiv.setAttribute("class","resDiv failedComp") } runDiv.appendChild(resDiv)