This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
add allow attribute `class` to `<code>`
tags/v1.21.12.1
Hongcai Deng
10 years ago
parent
f432f1f41c
commit
357c002c03
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
modules/base/tool.go
+ 4
- 0
modules/base/tool.go
View File
@@ -28,6 +28,10 @@ import (
var Sanitizer = bluemonday.UGCPolicy()
func init() {
Sanitizer.AllowAttrs("class").OnElements("code")
}
// Encode string to md5 hex value.
func EncodeMd5(str string) string {
m := md5.New()
Write
Preview
Loading…
Cancel
Save