From 5c38de0dfb0a7bd7978d87b7910209f711bd2b03 Mon Sep 17 00:00:00 2001 From: Castle <7586648+MythodeaLoL@users.noreply.github.com> Date: Tue, 19 Nov 2024 15:12:00 -0300 Subject: [PATCH] Allow Telegram blockquote expandable (#2427) * Allow Telegram blockquote expandable Blockquote is not yet supported, this feature adds support along with expandable functionality. * Add support for tg-emoji in Telegram HTML --------- Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> --- plexpy/notification_handler.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index e981b17b..4afd8638 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1454,8 +1454,11 @@ def strip_tag(data, agent_id=None): 's': [], 'strike': [], 'del': [], 'span': ['class'], 'tg-spoiler': [], 'a': ['href'], + 'tg-emoji': ['emoji-id'], 'code': ['class'], - 'pre': []} + 'pre': [], + 'blockquote': ['expandable'], + } data = bleach.clean(data, tags=whitelist.keys(), attributes=whitelist, strip=True) elif agent_id in (10, 14, 20, 25):