From 7950fc7d20444d7fc0605d54c8fa1a1b288c7d0a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Sun, 3 Aug 2025 16:13:26 +0200 Subject: Improve the banknotes/codes page --- src/templates.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/templates.go') diff --git a/src/templates.go b/src/templates.go index a553766..3852b9d 100644 --- a/src/templates.go +++ b/src/templates.go @@ -31,6 +31,7 @@ var ( "locales": i18n.Locales, "map": templateMakeMap, "safe": asHTML, + "toString": toString, "toUpper": strings.ToUpper, "tuple": templateMakeTuple, "withTranslation": withTranslation, @@ -92,6 +93,10 @@ func asHTML(s string) template.HTML { return template.HTML(s) } +func toString(s template.HTML) string { + return string(s) +} + func templateMakeTuple(args ...any) []any { return args } -- cgit v1.2.3