Merge pull request #95 from anonx/master

Whitelisted th and td to fix #79
pull/89/merge
Vytautas Šaltenis 2014-07-22 17:00:57 +03:00
commit 8b4c144eda
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"}),