1
0
Fork 0
forked from forgejo/forgejo

Checklist-rendering implemented

This commit is contained in:
Kim "BKC" Carlbäcker 2016-01-13 13:25:52 +01:00
parent fc4a4d38d1
commit 8e09e03127
2 changed files with 11 additions and 1 deletions

View file

@ -31,7 +31,7 @@ import (
"github.com/gogits/gogs/modules/setting"
)
var Sanitizer = bluemonday.UGCPolicy().AllowAttrs("class").Matching(regexp.MustCompile(`[\p{L}\p{N}\s\-_',:\[\]!\./\\\(\)&]*`)).OnElements("code")
var Sanitizer = bluemonday.UGCPolicy().AllowAttrs("class").Matching(regexp.MustCompile(`[\p{L}\p{N}\s\-_',:\[\]!\./\\\(\)&]*`)).OnElements("code").AllowElements("input").AllowAttrs("type", "checked", "disabled").OnElements("input")
// EncodeMD5 encodes string to md5 hex value.
func EncodeMD5(str string) string {