From f5e341e65576f010a94f60d3bc229b9856ab6585 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Fri, 2 Feb 2018 23:22:41 -0800 Subject: [PATCH] Don't sanitize tags for Slack and Discord --- plexpy/notification_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index c8c8c3dc..eeb5e5b2 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -980,8 +980,8 @@ def strip_tag(data, agent_id=None): 'font': ['color']} return bleach.clean(data, tags=whitelist.keys(), attributes=whitelist, strip=True) - elif agent_id == 10: - # Don't remove tags for email + elif agent_id in (10, 14, 20): + # Don't remove tags for Email, Slack, and Discord return data elif agent_id == 13: