We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13e59c8 commit 9a8805dCopy full SHA for 9a8805d
templates/repo/view_file.tmpl
@@ -38,7 +38,7 @@
38
<div class="ui attached table segment">
39
<div class="file-view {{if .IsMarkup}}markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji">
40
{{if .IsMarkup}}
41
- {{if .FileContent}}{{.FileContent | Str2html}}{{end}}
+ {{if .FileContent}}{{.FileContent | Safe}}{{end}}
42
{{else if .IsRenderedHTML}}
43
<pre>{{if .FileContent}}{{.FileContent | Str2html}}{{end}}</pre>
44
{{else if not .IsTextFile}}
0 commit comments