From 86bc6131dfc93b9cbb0ec0fefa12e56fe9427052 Mon Sep 17 00:00:00 2001 From: anonx Date: Tue, 22 Jul 2014 19:34:23 +0600 Subject: [PATCH] Whitelisted th and td to fix #79 --- sanitize.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanitize.go b/sanitize.go index 9c102aa..ce6ef7b 100644 --- a/sanitize.go +++ b/sanitize.go @@ -38,6 +38,8 @@ func init() { whitelistAttrs = map[string]map[string]bool{ "a": toSet([]string{"href", "title", "rel"}), "img": toSet([]string{"src", "alt", "title"}), + "td": toSet([]string{"align"}), + "th": toSet([]string{"align"}), } protocolAttrs = map[string]map[string]bool{ "a": toSet([]string{"href"}),