all repos — grayfriday @ 86bc6131dfc93b9cbb0ec0fefa12e56fe9427052

blackfriday fork with a few changes

Whitelisted th and td to fix #79
anonx anonx@anonx
Tue, 22 Jul 2014 19:34:23 +0600
commit

86bc6131dfc93b9cbb0ec0fefa12e56fe9427052

parent

c7617b05ad8da2825e1b2d311622bf3472101624

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M sanitize.gosanitize.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"}),