Private
Public Access
1
0

improved html tag stripping

This commit is contained in:
Sander Roosendaal
2018-12-12 10:34:12 +01:00
parent 3a06408d3f
commit 6da4c36c68
5 changed files with 17 additions and 4 deletions

View File

@@ -40,6 +40,7 @@ from django.utils import timezone
from django.utils.html import strip_tags
from utils import deserialize_list,ewmovingaverage,wavg
from emails import htmlstrip
from HTMLParser import HTMLParser
class MLStripper(HTMLParser):
@@ -819,7 +820,7 @@ def handle_send_disqualification_email(
'username':username,
'reason':reason,
'siteurl':siteurl,
'message': strip_tags(message),
'message': htmlstrip(message),
'racename':racename,
}