diff options
| author | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-11-17 23:28:38 +0100 |
|---|---|---|
| committer | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-11-17 23:28:38 +0100 |
| commit | 03e1bd2b7b87cea01e2aab9ea54dfdbeff5874b9 (patch) | |
| tree | 56f35925a184126554c2bfe44c18608bb6bdf11a /webAO/encoding.js | |
| parent | 4858b67ea68cce8f485a0fd12e00e176b4ca33c7 (diff) | |
fix escaping
Diffstat (limited to 'webAO/encoding.js')
| -rw-r--r-- | webAO/encoding.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webAO/encoding.js b/webAO/encoding.js index 71ebe53..04a44e7 100644 --- a/webAO/encoding.js +++ b/webAO/encoding.js @@ -31,8 +31,8 @@ export function unescapeChat(estring) { export function safe_tags(unsafe) { if (unsafe) { return unsafe - .replace(/>/g, "&rt;") - .replace(/</g, "<"); + .replace(/>/g, '>') + .replace(/</g, '<'); } else { return ""; } |
