diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2017-12-01 03:38:33 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-11-30 21:38:33 +0200 |
commit | 9a8805d785597a04ad03da4834a0c5f033c4a83a (patch) | |
tree | 7f37e294dfdadcca2c39127f3dd692bc092a9bfa | |
parent | 13e59c8b7a91fe6998c6a2d744407a437ffc3fc2 (diff) | |
download | gitea-9a8805d785597a04ad03da4834a0c5f033c4a83a.tar.gz gitea-9a8805d785597a04ad03da4834a0c5f033c4a83a.zip |
remove duplicated sanitize (#3037)
-rw-r--r-- | templates/repo/view_file.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ <div class="ui attached table segment"> <div class="file-view {{if .IsMarkup}}markdown{{else if .IsRenderedHTML}}plain-text{{else if .IsTextFile}}code-view{{end}} has-emoji"> {{if .IsMarkup}} - {{if .FileContent}}{{.FileContent | Str2html}}{{end}} + {{if .FileContent}}{{.FileContent | Safe}}{{end}} {{else if .IsRenderedHTML}} <pre>{{if .FileContent}}{{.FileContent | Str2html}}{{end}}</pre> {{else if not .IsTextFile}} |