From 3c9eb86bad734205de9210823cd2010344ef3751 Mon Sep 17 00:00:00 2001 From: isink17 <39876158+isink17@users.noreply.github.com> Date: Thu, 23 Apr 2026 14:23:28 +0200 Subject: [PATCH] cli: disable HTML escaping in JSON/JSONL output for schema stability --- internal/cli/app.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/cli/app.go b/internal/cli/app.go index d0eeb4c..ad94542 100644 --- a/internal/cli/app.go +++ b/internal/cli/app.go @@ -1323,12 +1323,14 @@ type graphRepo struct { func writeJSON(w io.Writer, v any) error { enc := json.NewEncoder(w) + enc.SetEscapeHTML(false) enc.SetIndent("", " ") return enc.Encode(v) } func writeJSONL(w io.Writer, v any) error { enc := json.NewEncoder(w) + enc.SetEscapeHTML(false) return enc.Encode(v) }