aboutsummaryrefslogtreecommitdiff
path: root/webAO/client.js
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/client.js')
-rw-r--r--webAO/client.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webAO/client.js b/webAO/client.js
index 8bcd4fe..fa1df5d 100644
--- a/webAO/client.js
+++ b/webAO/client.js
@@ -2431,13 +2431,16 @@ window.toggleShout = toggleShout;
* @param {string} unsafe an unsanitized string
*/
function safe_tags(unsafe) {
- if (unsafe)
+ if (unsafe) {
return unsafe
.replace(/&/g, "&")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;");
//.replace(/"/g, "&quot;")
//.replace(/'/g, "&#039;");
+ } else {
+ return "";
+ }
}
/**