Skip to content

Commit 9931d19

Browse files
BadiboyCopilot
andauthored
Update telebot/formatting.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent d8f1595 commit 9931d19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

telebot/formatting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def create_html_tag(self, entity, content: str) -> str: # entity: MessageEntity
599599
# Prepare format arguments
600600
format_args = {"text": content}
601601
if entity_type == "text_link":
602-
format_args["url"] = entity.url or ""
602+
format_args["url"] = escape_html(entity.url or "")
603603
elif entity_type == "custom_emoji":
604604
format_args["custom_emoji_id"] = entity.custom_emoji_id or ""
605605

0 commit comments

Comments
 (0)