From eb6678e523c1c359977f1812f14f5a118e52e7dc Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 23 Apr 2019 22:42:14 -0400 Subject: [PATCH] allow del tag in html --- html.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/html.go b/html.go index 24b18d4..8c9dbd4 100644 --- a/html.go +++ b/html.go @@ -30,7 +30,8 @@ import ( var permittedtags = []string{"div", "h1", "h2", "h3", "h4", "h5", "h6", "table", "thead", "tbody", "th", "tr", "td", - "p", "br", "pre", "code", "blockquote", "strong", "em", "b", "i", "s", "sup", + "p", "br", "pre", "code", "blockquote", + "strong", "em", "b", "i", "s", "sup", "del", "ol", "ul", "li"} var permittedattr = []string{"colspan", "rowspan"} var bannedtags = []string{"script", "style"}