From 9078b567f0b54dd64fb85d9a276815cddd6b3407 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 4 Jan 2020 23:37:41 +0000 Subject: [PATCH] Add del tag and sort tags --- apiserver/utils.py | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/apiserver/utils.py b/apiserver/utils.py index d4cfeb5..9fbe3ee 100644 --- a/apiserver/utils.py +++ b/apiserver/utils.py @@ -23,35 +23,36 @@ ALLOWED_TAGS = [ 'acronym', 'b', 'blockquote', - 'code', - 'em', - 'i', - 'li', - 'ol', - 'strong', - 'ul', - 'p', - 'hr', - 'small', - 'ins', - 'sup', - 'sub', - 'details', - 'summary', 'br', - 'pre', + 'code', + 'del', + 'details', + 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', + 'hr', + 'i', + 'ins', + 'li', + 'ol', + 'p', + 'pre', + 'small', + 'strong', + 'sub', + 'summary', + 'sup', 'table', + 'tbody', + 'td', + 'th', 'thead', 'tr', - 'th', - 'td', - 'tbody', + 'ul', ] clean = Cleaner(tags=ALLOWED_TAGS).clean