1
0
mirror of https://github.com/danog/blackfriday.git synced 2025-01-23 05:41:27 +01:00

Whitelisted th and td to fix #79

This commit is contained in:
anonx 2014-07-22 19:34:23 +06:00
parent c7617b05ad
commit 86bc6131df

View File

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