summaryrefslogtreecommitdiffstats
path: root/modules/templates
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-11-21 23:09:48 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-22 15:09:48 +0800
commit2cb6c51158aece9285059db72e5f28b1b8aadb45 (patch)
tree4f8ab2cc5b1d44085a8d107589eec6f684a00620 /modules/templates
parentdbb7715b0b08ea5ea1b8e03c624887abb140a74f (diff)
downloadgitea-2cb6c51158aece9285059db72e5f28b1b8aadb45.tar.gz
gitea-2cb6c51158aece9285059db72e5f28b1b8aadb45.zip
Fix over-escaped characters (#2956)
Diffstat (limited to 'modules/templates')
-rw-r--r--modules/templates/helper.go10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go
index 454bd648a3..7fd0ed35a3 100644
--- a/modules/templates/helper.go
+++ b/modules/templates/helper.go
@@ -16,16 +16,15 @@ import (
"strings"
"time"
- "github.com/microcosm-cc/bluemonday"
- "golang.org/x/net/html/charset"
- "golang.org/x/text/transform"
- "gopkg.in/editorconfig/editorconfig-core-go.v1"
-
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/markup"
"code.gitea.io/gitea/modules/setting"
+
+ "golang.org/x/net/html/charset"
+ "golang.org/x/text/transform"
+ "gopkg.in/editorconfig/editorconfig-core-go.v1"
)
// NewFuncMap returns functions for injecting to templates
@@ -67,7 +66,6 @@ func NewFuncMap() []template.FuncMap {
"AvatarLink": base.AvatarLink,
"Safe": Safe,
"SafeJS": SafeJS,
- "Sanitize": bluemonday.UGCPolicy().Sanitize,
"Str2html": Str2html,
"TimeSince": base.TimeSince,
"RawTimeSince": base.RawTimeSince,