mirror of
https://github.com/writefreely/writefreely
synced 2025-02-17 16:28:23 +00:00
allow titles for abbreviation elements
this allows abbreviation elements to keep their title attributes when containing special characters.
This commit is contained in:
parent
5310e6d509
commit
a6c1f4ae41
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue