Whitelisted th and td to fix #79

pull/95/head
anonx 2014-07-22 19:34:23 +06:00
parent c7617b05ad
commit 86bc6131df
1 changed files with 2 additions and 0 deletions

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