aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-09-16 23:47:41 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:54 +0100
commit9dfb365effd85ef5c852c5f797e4f44e17c98ce9 (patch)
treef15c009e8f1886a5dcb2a4f2c731cc21a70831cd /slack
parentd31e4aaf6e8fe6ba7ebaf472d978e48888cab85f (diff)
downloadwee-slack-9dfb365effd85ef5c852c5f797e4f44e17c98ce9.tar.gz
Unescape &, < and > in message text field
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_message.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/slack/slack_message.py b/slack/slack_message.py
index f8bb697..907dec9 100644
--- a/slack/slack_message.py
+++ b/slack/slack_message.py
@@ -350,7 +350,7 @@ class SlackMessage:
if "blocks" in self._message_json:
texts = await self._render_blocks(self._message_json["blocks"])
else:
- text = await self._unfurl_refs(self._message_json["text"])
+ text = unhtmlescape(await self._unfurl_refs(self._message_json["text"]))
texts = [text] if text else []
files_texts = self._render_files(self._message_json.get("files", []))