diff --git a/src/renderer/scr.discord.js b/src/renderer/scr.discord.js
index 9ad3fa2..cb43394 100644
--- a/src/renderer/scr.discord.js
+++ b/src/renderer/scr.discord.js
@@ -7,9 +7,9 @@ var DISCORD = (function(){
formatCodeInline: /`+\s*([\s\S]*?[^`])\s*\1(?!`)/g,
formatCodeBlock: /```(?:([A-z0-9\-]+?)\n+)?\n*([^]+?)\n*```/g,
formatUrl: /(\b(?:https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])>?/ig,
- mentionRole: /<@&(\d+?)>/g,
- mentionUser: /<@!?(\d+?)>/g,
- mentionChannel: /<#(\d+?)>/g
+ mentionRole: /<@&(\d+?)>/g,
+ mentionUser: /<@!?(\d+?)>/g,
+ mentionChannel: /<#(\d+?)>/g
};
var templateChannelServer;
@@ -59,7 +59,7 @@ var DISCORD = (function(){
return date.toLocaleDateString()+", "+date.toLocaleTimeString();
}
else if (property === "contents"){
- var processed = value // TODO handle escaping
+ var processed = DOM.escapeHTML(value)
.replace(REGEX.formatBold, "$1")
.replace(REGEX.formatItalic, "$1")
.replace(REGEX.formatUnderline, "$1")