all repos — grayfriday @ 8b4c144eda8ddf733c630ccfab254dbc5d672b3f

blackfriday fork with a few changes

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
commit

8b4c144eda8ddf733c630ccfab254dbc5d672b3f

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"}),