Browse Source

[GinR] Markdown sanitisation allows class on div

cgars 7 years ago
parent
commit
f340f4831d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      pkg/markup/sanitizer.go

+ 2 - 0
pkg/markup/sanitizer.go

@@ -38,6 +38,8 @@ func NewSanitizer() {
 
 		// Custom URL-Schemes
 		sanitizer.policy.AllowURLSchemes(setting.Markdown.CustomURLSchemes...)
+
+		sanitizer.policy.AllowAttrs("class").OnElements("div")
 	})
 }