From 84d3a7ad84f7f6ff2287bdde4a2ddd8fd0c48856 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Wed, 6 Sep 2017 06:34:51 +0000 Subject: [PATCH] Remove escape blackslash for angle brackets before displaying message --- webapp/titanembeds/static/js/embed.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index ea0c733..6119d55 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -698,6 +698,8 @@ message = parse_message_time(message); message = parse_message_attachments(message); message = parse_channels_in_message(message); + message.content = message.content.replaceAll("\\<", "<"); + message.content = message.content.replaceAll("\\>", ">"); message.content = escapeHtml(message.content); message.content = parse_message_markdown(message.content); message = parse_emoji_in_message(message);