mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 07:23:56 +01:00
remove duplicated sanitize (#3037)
This commit is contained in:
parent
13e59c8b7a
commit
9a8805d785
1 changed files with 1 additions and 1 deletions
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue