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

Merge pull request #95 from anonx/master

Whitelisted th and td to fix #79
This commit is contained in:
Vytautas Šaltenis 2014-07-22 17:00:57 +03:00
commit 8b4c144eda

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