瀏覽代碼

allow titles for abbreviation elements

this allows abbreviation elements to keep their title attributes when
containing special characters.
pull/184/head
Rob Loranger 4 年之前
父節點
當前提交
a6c1f4ae41
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: D6F1633A4F0903B8
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      postrender.go

+ 1
- 0
postrender.go 查看文件

@@ -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…
取消
儲存