avoid innerHtml
This commit is contained in:
parent
50587abe9c
commit
95280674e5
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue