Don't sanitize tags for Slack and Discord

This commit is contained in:
JonnyWong16 2018-02-02 23:22:41 -08:00
parent 3c81100957
commit f5e341e655

View file

@ -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: