From 9a8805d785597a04ad03da4834a0c5f033c4a83a Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Fri, 1 Dec 2017 03:38:33 +0800 Subject: remove duplicated sanitize (#3037) --- templates/repo/view_file.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/repo') diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index e8319881ff..740a789895 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -38,7 +38,7 @@
{{if .IsMarkup}} - {{if .FileContent}}{{.FileContent | Str2html}}{{end}} + {{if .FileContent}}{{.FileContent | Safe}}{{end}} {{else if .IsRenderedHTML}}
{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
{{else if not .IsTextFile}} -- cgit v1.2.3