allow titles for abbreviation elements

this allows abbreviation elements to keep their title attributes when
containing special characters.
This commit is contained in:
Rob Loranger 2019-09-18 08:21:33 -07:00
parent 5310e6d509
commit a6c1f4ae41
No known key found for this signature in database
GPG Key ID: D6F1633A4F0903B8
1 changed files with 1 additions and 0 deletions

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