From 2e84df01d4cadd7011bfe4f57187553b151d3f25 Mon Sep 17 00:00:00 2001 From: logikonline Date: Mon, 19 Jan 2026 23:38:04 -0500 Subject: [PATCH] Fix template error: Str2HTML -> SafeHTML MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Str2HTML function doesn't exist in Gitea templates. Use SafeHTML instead for rendering HTML content. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- templates/repo/view_license_tab.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/view_license_tab.tmpl b/templates/repo/view_license_tab.tmpl index a2f00b5557..c73101133f 100644 --- a/templates/repo/view_license_tab.tmpl +++ b/templates/repo/view_license_tab.tmpl @@ -16,7 +16,7 @@
{{if .LicenseTabIsMarkdown}}
- {{.LicenseTabContent | Str2HTML}} + {{.LicenseTabContent | SafeHTML}}
{{else}}