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:
commit
8b4c144eda
@ -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"}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user