Skip to content

Commit

Permalink
Merge pull request microcosm-cc#41 from Hapara/AddCenterAndMarquee
Browse files Browse the repository at this point in the history
Add center and marquee to whitelist
  • Loading branch information
David Kitchen authored Aug 3, 2017
2 parents e797637 + 1a360b4 commit 336935e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,7 @@ func (p *Policy) addDefaultElementsWithoutAttrs() {
p.setOfElementsAllowedWithoutAttrs["button"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["canvas"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["caption"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["center"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["cite"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["code"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["col"] = struct{}{}
Expand Down Expand Up @@ -484,6 +485,7 @@ func (p *Policy) addDefaultElementsWithoutAttrs() {
p.setOfElementsAllowedWithoutAttrs["kbd"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["li"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["mark"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["marquee"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["nav"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["ol"] = struct{}{}
p.setOfElementsAllowedWithoutAttrs["optgroup"] = struct{}{}
Expand Down

0 comments on commit 336935e

Please sign in to comment.