Procházet zdrojové kódy

allow titles for abbreviation elements

this allows abbreviation elements to keep their title attributes when
containing special characters.
pull/184/head
Rob Loranger před 4 roky
rodič
revize
a6c1f4ae41
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: D6F1633A4F0903B8
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. +1
    -0
      postrender.go

+ 1
- 0
postrender.go Zobrazit soubor

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


Načítá se…
Zrušit
Uložit