diff options
author | 2021-02-13 00:36:03 -0800 | |
---|---|---|
committer | 2021-02-13 00:36:03 -0800 | |
commit | 762541ff54351a24f5a50e16d75bcd53f63721e4 (patch) | |
tree | 2be8894122114ad014cd00b69c9f358db4a3c7ea | |
parent | Merge pull request #1416 from python-discord/pypi-command (diff) | |
parent | Made flake8 even happier. (diff) |
Merge pull request #1419 from python-discord/pypi-command-escape-markdown
Escaping markdown in the PyPi embed.
-rw-r--r-- | bot/exts/info/pypi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/info/pypi.py b/bot/exts/info/pypi.py index cf45b068f..3e326e8bb 100644 --- a/bot/exts/info/pypi.py +++ b/bot/exts/info/pypi.py @@ -4,6 +4,7 @@ import random from discord import Embed from discord.ext.commands import Cog, Context, command +from discord.utils import escape_markdown from bot.bot import Bot from bot.constants import Colours, NEGATIVE_REPLIES @@ -53,7 +54,7 @@ class PyPi(Cog): embed.add_field( name=field.replace("_", " ").title(), - value=field_data, + value=escape_markdown(field_data), inline=False, ) |