From 53b673f86dbad9a5dd6829124157eaf2222f388a Mon Sep 17 00:00:00 2001 From: prokopparuzek Date: Wed, 5 Nov 2025 18:29:54 +0100 Subject: [PATCH] clue can be html --- klice.go | 2 +- templates.go | 2 +- templates/adminCiphers.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/klice.go b/klice.go index 4ec4690..a35a68a 100644 --- a/klice.go +++ b/klice.go @@ -287,7 +287,7 @@ func qrHandler(w http.ResponseWriter, r *http.Request) { http.Error(w, "Could not retrieve help text", http.StatusInternalServerError) return } - CipherTemplateData.HelpText = helpText + CipherTemplateData.HelpText = template.HTML(helpText) case 2: // next cipher // get end clue var endClue string diff --git a/templates.go b/templates.go index c7ab84e..6c089e0 100644 --- a/templates.go +++ b/templates.go @@ -12,7 +12,7 @@ type CipherTemplateS struct { ID int Order uint Assignment template.HTML - HelpText string + HelpText template.HTML FinalClue string Coordinates string PositionHint string diff --git a/templates/adminCiphers.html b/templates/adminCiphers.html index 4019dab..75c0dc9 100644 --- a/templates/adminCiphers.html +++ b/templates/adminCiphers.html @@ -39,7 +39,7 @@ - +