From b2ae3b4ac11367eb9d750da4a5d17dea7f821251 Mon Sep 17 00:00:00 2001 From: akuma06 Date: Wed, 10 May 2017 22:03:57 +0200 Subject: [PATCH] Added a function to not have characters encoded by go template --- router/templateFunctions.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/router/templateFunctions.go b/router/templateFunctions.go index 51e497ec..639fa538 100644 --- a/router/templateFunctions.go +++ b/router/templateFunctions.go @@ -70,4 +70,7 @@ var FuncMap = template.FuncMap{ "HasAdmin": userPermission.HasAdmin, "GetRole": userPermission.GetRole, "IsFollower": userPermission.IsFollower, + "NoEncode": func(str string) template.HTML { + return template.HTML(str) + }, }