Merge branch 'dev' of github.com:dikstub-rssa/simrs-be into migration
This commit is contained in:
@@ -33,6 +33,9 @@ func (r *RequestPdf) ParseTemplate(templatePath string, data interface{}) error
|
||||
"nl2br": func(text string) template.HTML {
|
||||
return template.HTML(strings.Replace(template.HTMLEscapeString(text), "\n", "<br>", -1))
|
||||
},
|
||||
"safeHTML": func(text string) template.HTML {
|
||||
return template.HTML(text)
|
||||
},
|
||||
}
|
||||
t, err := template.New(fileName).Funcs(funcs).ParseFiles(templatePath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user