浏览代码

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 密钥 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


正在加载...
取消
保存