aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorOpSimple <opsimple@protonmail.com>2019-08-10 21:45:21 +0200
committerGitHub <noreply@github.com>2019-08-10 21:45:21 +0200
commit9fcb235ad50ecff98fdb013b611af9dfee85977f (patch)
tree3fbbafb3479a5d6ae568df5907efa1145ba5ef4c /client
parentModified the way to apply syntax highlighting (diff)
downloadhackchat-9fcb235ad50ecff98fdb013b611af9dfee85977f.tar.gz
hackchat-9fcb235ad50ecff98fdb013b611af9dfee85977f.zip
Minor change for a major fix
I forgot to change `holEl.textContent` with `holEl.innerHTML` after I shifted the links parsing line at the last. Earlier, I felt its need to preserve the anchor tags. Finally, fixed it!
Diffstat (limited to '')
-rw-r--r--client/client.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/client.js b/client/client.js
index 7c87ec0..f55c388 100644
--- a/client/client.js
+++ b/client/client.js
@@ -418,7 +418,7 @@ function parseLatex(str) {
// Temporary hotfix for \rule spamming, see https://github.com/Khan/KaTeX/issues/109
str = str.replace(/\\rule|\\\\\s*\[.*?\]/g, '');
var holEl = document.createElement('p');
- holEl.innerHTML = str;
+ holEl.textContent = str;
try {
renderMathInElement(holEl, {
delimiters: [