From 591bb0866c852d620d9652759e1f881bc11ebfc0 Mon Sep 17 00:00:00 2001 From: CJ Eller Date: Mon, 22 Jun 2020 20:33:52 +0000 Subject: [PATCH] Add footer and header element --- postrender.go | 1 + 1 file changed, 1 insertion(+) diff --git a/postrender.go b/postrender.go index 83fb5ad..69052ea 100644 --- a/postrender.go +++ b/postrender.go @@ -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 }