mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 22:34:25 +01:00
Use a specific xss sanitizer for long form content
This commit is contained in:
@@ -252,7 +252,8 @@ func render(w http.ResponseWriter, r *http.Request) {
|
||||
funcMap := template.FuncMap{
|
||||
"basicFormatting": basicFormatting,
|
||||
"mdToHTML": mdToHTML,
|
||||
"sanitizeString": html.EscapeString,
|
||||
"escapeString": html.EscapeString,
|
||||
"sanitizeXSS": sanitizeXSS,
|
||||
}
|
||||
|
||||
tmpl := template.Must(
|
||||
|
||||
Reference in New Issue
Block a user