1
0
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:
Matt Baer 2019-09-18 12:27:04 -04:00 committed by GitHub
commit 66974dcbff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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