aboutsummaryrefslogtreecommitdiff
path: root/modules/template
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-01-14 07:20:03 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2016-01-27 02:02:03 +0100
commit3a9fd81f5946cbd70390b9c061bdcd1842f29735 (patch)
tree84379248c2c02d766d83f79cd260a10a9393101f /modules/template
parentab0ba4bbae121c9ba3cf0d49efc1c90ef7bb3ddc (diff)
Custom URL-Schemas for Markdown
Diffstat (limited to 'modules/template')
-rw-r--r--modules/template/template.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/template/template.go b/modules/template/template.go
index 6099fcc9..d95035c3 100644
--- a/modules/template/template.go
+++ b/modules/template/template.go
@@ -105,7 +105,7 @@ func Safe(raw string) template.HTML {
}
func Str2html(raw string) template.HTML {
- return template.HTML(base.Sanitizer.Sanitize(raw))
+ return template.HTML(base.BuildSanitizer().Sanitize(raw))
}
func Range(l int) []int {