aboutsummaryrefslogtreecommitdiff
path: root/webAO/encoding.js
diff options
context:
space:
mode:
authorstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-17 23:28:38 +0100
committerstonedDiscord <10584181+stonedDiscord@users.noreply.github.com>2020-11-17 23:28:38 +0100
commit03e1bd2b7b87cea01e2aab9ea54dfdbeff5874b9 (patch)
tree56f35925a184126554c2bfe44c18608bb6bdf11a /webAO/encoding.js
parent4858b67ea68cce8f485a0fd12e00e176b4ca33c7 (diff)
fix escaping
Diffstat (limited to 'webAO/encoding.js')
-rw-r--r--webAO/encoding.js4
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, "&lt;");
+ .replace(/>/g, '&gt;')
+ .replace(/</g, '&lt;');
} else {
return "";
}