Files
kgpz_web/functions/string.go
Simon Martens 58df7cc1cb XSLT examlpe
2024-12-28 08:15:55 +01:00

18 lines
233 B
Go

package functions
import "html/template"
func FirstLetter(s string) string {
if len(s) == 0 {
return ""
}
return string(s[:1])
}
func Safe(s string) template.HTML {
if len(s) == 0 {
return ""
}
return template.HTML(s)
}