Merge pull request #95 from anonx/master Whitelisted th and td to fix #79
Vytautas Ĺ altenis vytas@rtfb.lt
Tue, 22 Jul 2014 17:00:57 +0300
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"}),