Whitelisted th and td to fix #79
anonx anonx@anonx
Tue, 22 Jul 2014 19:34:23 +0600
1 files changed,
2 insertions(+),
0 deletions(-)
jump to
M
sanitize.go
→
sanitize.go
@@ -38,6 +38,8 @@ })
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"}),