We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30fde47 commit 675f275Copy full SHA for 675f275
modules/markup/sanitizer.go
@@ -34,7 +34,6 @@ func NewSanitizer() {
34
35
// ReplaceSanitizer replaces the current sanitizer to account for changes in settings
36
func ReplaceSanitizer() {
37
- sanitizer = &Sanitizer{}
38
sanitizer.policy = bluemonday.UGCPolicy()
39
// We only want to allow HighlightJS specific classes for code blocks
40
sanitizer.policy.AllowAttrs("class").Matching(regexp.MustCompile(`^language-\w+$`)).OnElements("code")
0 commit comments