Merge pull request #184 from writeas/title-attrs

allow titles for abbreviation elements
pull/185/head
Matt Baer 5 years ago committed by GitHub
commit 66974dcbff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      postrender.go

@ -170,6 +170,7 @@ func getSanitizationPolicy() *bluemonday.Policy {
policy.AllowAttrs("controls", "loop", "muted", "autoplay").OnElements("video")
policy.AllowAttrs("controls", "loop", "muted", "autoplay", "preload").OnElements("audio")
policy.AllowAttrs("target").OnElements("a")
policy.AllowAttrs("title").OnElements("abbr")
policy.AllowAttrs("style", "class", "id").Globally()
policy.AllowURLSchemes("http", "https", "mailto", "xmpp")
return policy

Loading…
Cancel
Save