aboutsummaryrefslogtreecommitdiff
path: root/webAO/encoding.js
diff options
context:
space:
mode:
authorsD <stoned@derpymail.org>2020-04-13 17:54:42 +0200
committersD <stoned@derpymail.org>2020-04-13 17:54:42 +0200
commit3ca6d8c691fb52c272fef95f99573b9191c8530c (patch)
treea99eb0570308d2cc979729f2ee36f827056f6ee2 /webAO/encoding.js
parent63d9da0ce725392108bd65e3d790a067285fb9e4 (diff)
fix safe_tags
Diffstat (limited to 'webAO/encoding.js')
-rw-r--r--webAO/encoding.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/webAO/encoding.js b/webAO/encoding.js
index 3249617..71ebe53 100644
--- a/webAO/encoding.js
+++ b/webAO/encoding.js
@@ -31,10 +31,8 @@ export function unescapeChat(estring) {
export function safe_tags(unsafe) {
if (unsafe) {
return unsafe
- .replace(/&/g, "&amp;")
+ .replace(/>/g, "&rt;")
.replace(/</g, "&lt;");
- //.replace(/"/g, "&quot;")
- //.replace(/'/g, "&#039;");
} else {
return "";
}