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 @@ - +