Add QueryEscape to general funcmap (#17526)

QueryEscape was only added to the text funcmap. Add this to the main template funcmap
too.

Signed-off-by: Andrew Thornton <art27@cantab.net>
tokarchuk/v1.17
zeripath 3 years ago committed by GitHub
parent e69521f029
commit 95da01c5cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      modules/templates/helper.go

@ -379,6 +379,7 @@ func NewFuncMap() []template.FuncMap {
"MermaidMaxSourceCharacters": func() int {
return setting.MermaidMaxSourceCharacters
},
"QueryEscape": url.QueryEscape,
}}
}

Loading…
Cancel
Save