Przeglądaj źródła

allow titles for abbreviation elements

this allows abbreviation elements to keep their title attributes when
containing special characters.
pull/184/head
Rob Loranger 4 lat temu
rodzic
commit
a6c1f4ae41
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: D6F1633A4F0903B8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. +1
    -0
      postrender.go

+ 1
- 0
postrender.go Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz