clue can be html
This commit is contained in:
2
klice.go
2
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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
<label for="solution">Řešení:</label>
|
||||
<input type="text" id="solution" name="solution" required>
|
||||
<label for="clue">Nápověda:</label>
|
||||
<input type="text" id="clue" name="clue" required>
|
||||
<textarea id="clue" name="clue" cols="40" rows="5" required></textarea>
|
||||
<input type="submit" value="Přidat šifru">
|
||||
</form>
|
||||
<hr>
|
||||
|
||||
Reference in New Issue
Block a user