fix: use json.Marshal for hx-vals in watchlist templates

This commit is contained in:
2026-04-21 01:21:53 +02:00
parent 0b09c8e9b2
commit 735fc69669
3 changed files with 40 additions and 6 deletions

11
web/shared/hx_vals.go Normal file
View File

@@ -0,0 +1,11 @@
package shared
import "encoding/json"
func HxVals(v map[string]interface{}) string {
b, err := json.Marshal(v)
if err != nil {
return "{}"
}
return string(b)
}