From a9ed7aa159d42edaf10b6d4ad111d01f0e24ae41 Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Mon, 28 Jan 2019 23:49:54 +0530 Subject: [PATCH] Fix escape_html --- bot/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot/server.py b/bot/server.py index 012b2bb..0a77819 100644 --- a/bot/server.py +++ b/bot/server.py @@ -9,9 +9,9 @@ from emoji import emojize def escape_html(message): - return re.sub("&", "&", + return re.sub("<", "<", re.sub(">", "&rt;", - re.sub("<", "<", message))) + re.sub("&", "&", message))) def get(db):