summaryrefslogtreecommitdiffstats
path: root/modules/base
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-07 16:44:25 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-07 16:44:25 -0500
commit35977cd34cd635bca7f07ed2eb1fba0df9944e1d (patch)
treef12c39c762ce686e47eae6bf7282d08e12b1e10f /modules/base
parentabc57b6e439c5ab9c3b6ed2cedeb10d50f5ae619 (diff)
downloadgitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.tar.gz
gitea-35977cd34cd635bca7f07ed2eb1fba0df9944e1d.zip
continue work on #255
Diffstat (limited to 'modules/base')
-rw-r--r--modules/base/template.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/base/template.go b/modules/base/template.go
index 58572e24e4..446d01dd09 100644
--- a/modules/base/template.go
+++ b/modules/base/template.go
@@ -141,6 +141,9 @@ var TemplateFuncs template.FuncMap = map[string]interface{}{
"Oauth2Icon": Oauth2Icon,
"Oauth2Name": Oauth2Name,
"ToUtf8": ToUtf8,
+ "EscapePound": func(str string) string {
+ return strings.Replace(str, "#", "%23", -1)
+ },
}
type Actioner interface {