Browse Source

allow titles for abbreviation elements

this allows abbreviation elements to keep their title attributes when
containing special characters.
pull/184/head
Rob Loranger 4 years ago
parent
commit
a6c1f4ae41
No known key found for this signature in database GPG Key ID: D6F1633A4F0903B8
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      postrender.go

+ 1
- 0
postrender.go View File

@@ -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