diff options
author | Earl Warren <contact@earl-warren.org> | 2024-03-04 00:05:15 +0100 |
---|---|---|
committer | Earl Warren <contact@earl-warren.org> | 2024-03-06 05:10:45 +0100 |
commit | 801792e4dcc473783d649f58acd451f60dc882d2 (patch) | |
tree | 5286f38ddbd0072e663af76473c047e72bfd5221 /templates/repo/blame.tmpl | |
parent | Rename Str2html to SanitizeHTML and clarify its behavior (#29516) (diff) | |
download | forgejo-801792e4dcc473783d649f58acd451f60dc882d2.tar.xz forgejo-801792e4dcc473783d649f58acd451f60dc882d2.zip |
Rename Str2html to SanitizeHTML and clarify its behavior (followup)
Diffstat (limited to 'templates/repo/blame.tmpl')
-rw-r--r-- | templates/repo/blame.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl index 3bd5e36949..75104cdcd2 100644 --- a/templates/repo/blame.tmpl +++ b/templates/repo/blame.tmpl @@ -2,11 +2,11 @@ {{$revsFileLink := URLJoin .RepoLink "src" .BranchNameSubURL "/.git-blame-ignore-revs"}} {{if .UsesIgnoreRevs}} <div class="ui info message"> - <p>{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true") | Str2html}}</p> + <p>{{ctx.Locale.Tr "repo.blame.ignore_revs" $revsFileLink (print $revsFileLink "?bypass-blame-ignore=true") | SanitizeHTML}}</p> </div> {{else}} <div class="ui error message"> - <p>{{ctx.Locale.Tr "repo.blame.ignore_revs.failed" $revsFileLink | Str2html}}</p> + <p>{{ctx.Locale.Tr "repo.blame.ignore_revs.failed" $revsFileLink | SanitizeHTML}}</p> </div> {{end}} {{end}} |