From e3a788f6c989fda88560b74a5fb0a35a2f5bed85 Mon Sep 17 00:00:00 2001 From: Stijn De Clercq Date: Fri, 21 Jan 2022 20:33:59 +0100 Subject: [PATCH] Escape asterisks in ufora notifications --- data/embeds/ufora.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/embeds/ufora.py b/data/embeds/ufora.py index 613c932..bdb86eb 100644 --- a/data/embeds/ufora.py +++ b/data/embeds/ufora.py @@ -46,6 +46,8 @@ class UforaNotification: return desc def _clean_content(self, text: str): + # Escape *-characters because they mess up the layout + text = text.replace("*", "\\*") return md(text) def _get_published(self):