MCPcopy 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
137func Safe(raw string) template.HTML {
138 return template.HTML(raw)
139}
140
141func Str2HTML(raw string) template.HTML {
142 return template.HTML(markup.Sanitize(raw))

Callers 1

ContexterFunction · 0.92

Calls 1

HTMLMethod · 0.80

Tested by

no test coverage detected