From a1e4869d12fb47127954d8aa28c54d047be863f5 Mon Sep 17 00:00:00 2001 From: Dima Krasner Date: Sat, 27 Jan 2024 13:04:29 +0200 Subject: [PATCH] disable escaping of & in -dumpcfg output --- cmd/tootik/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/tootik/main.go b/cmd/tootik/main.go index e19b0703..bef62032 100644 --- a/cmd/tootik/main.go +++ b/cmd/tootik/main.go @@ -85,6 +85,7 @@ func main() { if *dumpCfg { cfg.FillDefaults() e := json.NewEncoder(os.Stdout) + e.SetEscapeHTML(false) e.SetIndent("", "\t") if err := e.Encode(cfg); err != nil { panic(err)