소스 검색

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
No known key found for this signature in database 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


불러오는 중...
취소
저장