2
0

Fix template error: Str2HTML -> SafeHTML
Some checks failed
Build and Release / Lint (push) Successful in 3m20s
Build and Release / Create Release (push) Successful in 1s
Build and Release / Integration Tests (PostgreSQL) (push) Successful in 3m59s
Build and Release / Unit Tests (push) Failing after 4m20s
Build and Release / Build Binaries (amd64, linux, linux-latest) (push) Successful in 3m3s
Build and Release / Build Binaries (amd64, windows, windows-latest) (push) Successful in 9h3m59s
Build and Release / Build Binary (linux/arm64) (push) Failing after 3m20s
Build and Release / Build Binaries (amd64, darwin, macos) (push) Has been cancelled
Build and Release / Build Binaries (arm64, darwin, macos) (push) Has been cancelled

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 <noreply@anthropic.com>
This commit is contained in:
2026-01-19 23:38:04 -05:00
parent 27fb680a15
commit 2e84df01d4

View File

@@ -16,7 +16,7 @@
<div class="file-body">
{{if .LicenseTabIsMarkdown}}
<div class="markup markdown">
{{.LicenseTabContent | Str2HTML}}
{{.LicenseTabContent | SafeHTML}}
</div>
{{else}}
<div class="file-content plain-text">