diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/Main.hx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx index 3a819b2..b2e224d 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -457,6 +457,8 @@ class Main { nameDiv.textContent = name + ": "; final textDiv = document.createSpanElement(); + text = text.htmlEscape(); + if (text.startsWith("/")) { if (name == personal.name) handleCommands(text.substr(1)); } else { @@ -464,7 +466,6 @@ class Main { text = filter.regex.replace(text, filter.replace); } } - text = text.htmlEscape(); textDiv.innerHTML = text; final isInChatEnd = msgBuf.scrollHeight - msgBuf.scrollTop == msgBuf.clientHeight; |
