Pārlūkot izejas kodu

allow titles for abbreviation elements

this allows abbreviation elements to keep their title attributes when
containing special characters.
pull/184/head
Rob Loranger pirms 4 gadiem
vecāks
revīzija
a6c1f4ae41
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: D6F1633A4F0903B8
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. +1
    -0
      postrender.go

+ 1
- 0
postrender.go Parādīt failu

@@ -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


Notiek ielāde…
Atcelt
Saglabāt