mirror of
https://github.com/writeas/writefreely
synced 2025-01-22 12:00:38 +01:00
Merge pull request #184 from writeas/title-attrs
allow titles for abbreviation elements
This commit is contained in:
commit
66974dcbff
@ -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…
Reference in New Issue
Block a user