diff options
Diffstat (limited to 'client')
-rw-r--r-- | client/client.js | 2 |
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: [ |