Add footer and header element

This commit is contained in:
CJ Eller 2020-06-22 20:33:52 +00:00
parent e16ea3b419
commit 591bb0866c
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ func getSanitizationPolicy() *bluemonday.Policy {
policy.AllowAttrs("target").OnElements("a")
policy.AllowAttrs("title").OnElements("abbr")
policy.AllowAttrs("style", "class", "id").Globally()
policy.AllowElements("header", "footer")
policy.AllowURLSchemes("http", "https", "mailto", "xmpp")
return policy
}