Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gogs/gogs
/ Safe
Function
Safe
internal/template/template.go:137–139 ·
view source on GitHub ↗
(raw string)
Source
from the content-addressed store, hash-verified
135
}
136
137
func
Safe(raw string) template.HTML {
138
return
template.HTML(raw)
139
}
140
141
func
Str2HTML(raw string) template.HTML {
142
return
template.HTML(markup.Sanitize(raw))
Callers
1
Contexter
Function · 0.92
Calls
1
HTML
Method · 0.80
Tested by
no test coverage detected