Browse Source

remove duplicated sanitize (#3037)

Lunny Xiao 2 years ago
parent
commit
9a8805d785
1 changed files with 1 additions and 1 deletions
  1. 1 1
      templates/repo/view_file.tmpl

+ 1 - 1
templates/repo/view_file.tmpl

@@ -38,7 +38,7 @@
38 38
 	<div class="ui attached table segment">
39 39
 		<div class="file-view {{if .IsMarkup}}markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji">
40 40
 			{{if .IsMarkup}}
41
-				{{if .FileContent}}{{.FileContent | Str2html}}{{end}}
41
+				{{if .FileContent}}{{.FileContent | Safe}}{{end}}
42 42
 			{{else if .IsRenderedHTML}}
43 43
 				<pre>{{if .FileContent}}{{.FileContent | Str2html}}{{end}}</pre>
44 44
 			{{else if not .IsTextFile}}