diff options
author | Marvin Borner | 2019-04-13 20:06:43 +0200 |
---|---|---|
committer | Marvin Borner | 2019-04-13 20:06:43 +0200 |
commit | 7117f01a3e64726f4e069df21634647613325d4a (patch) | |
tree | 42c863b9755b982ff98234252851606abb914a8b /src/main/resources/js | |
parent | 9e91d7e8cd3a3cdfee7f4d10347f48980eeaae93 (diff) |
Fixed html rendering at line number view
Diffstat (limited to 'src/main/resources/js')
-rw-r--r-- | src/main/resources/js/fileview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/resources/js/fileview.js b/src/main/resources/js/fileview.js index 039d618..c6b10f2 100644 --- a/src/main/resources/js/fileview.js +++ b/src/main/resources/js/fileview.js @@ -40,13 +40,13 @@ code.addEventListener("change", () => { content.classList.remove("prettyprinted"); content.innerHTML = ""; content.classList.add("linenums"); - content.innerHTML = originalContent; + content.innerText = originalContent; PR.prettyPrint(); } else { content.classList.remove("prettyprinted"); content.innerHTML = ""; content.classList.remove("linenums"); - content.innerHTML = originalContent; + content.innerText = originalContent; PR.prettyPrint(); } }); |