mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
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>
This commit is contained in:
parent
ea66f6713b
commit
5c38de0dfb
1 changed files with 4 additions and 1 deletions
|
@ -1454,8 +1454,11 @@ def strip_tag(data, agent_id=None):
|
||||||
's': [], 'strike': [], 'del': [],
|
's': [], 'strike': [], 'del': [],
|
||||||
'span': ['class'], 'tg-spoiler': [],
|
'span': ['class'], 'tg-spoiler': [],
|
||||||
'a': ['href'],
|
'a': ['href'],
|
||||||
|
'tg-emoji': ['emoji-id'],
|
||||||
'code': ['class'],
|
'code': ['class'],
|
||||||
'pre': []}
|
'pre': [],
|
||||||
|
'blockquote': ['expandable'],
|
||||||
|
}
|
||||||
data = bleach.clean(data, tags=whitelist.keys(), attributes=whitelist, strip=True)
|
data = bleach.clean(data, tags=whitelist.keys(), attributes=whitelist, strip=True)
|
||||||
|
|
||||||
elif agent_id in (10, 14, 20, 25):
|
elif agent_id in (10, 14, 20, 25):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue