blob: 44c56f3f8ff62d3342c64d7d11ba1a7627730c64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
package render
import (
"html"
"html/template"
)
// EscapeHTML just escapes a string and wraps it in [template.HTML].
func EscapeHTML(s string) template.HTML {
return template.HTML(html.EscapeString(s)) //#nosec G203
}
|