From 15b7491d662a3c0f14ce62aaaa66cf75b761532e Mon Sep 17 00:00:00 2001 From: David Colburn Date: Wed, 30 Oct 2024 15:11:29 -0400 Subject: [PATCH] do not escape html --- pkg/config/manifest.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkg/config/manifest.go b/pkg/config/manifest.go index 04c099ba..c3735547 100644 --- a/pkg/config/manifest.go +++ b/pkg/config/manifest.go @@ -15,6 +15,7 @@ package config import ( + "bytes" "encoding/json" "sync" "time" @@ -153,5 +154,12 @@ func (m *Manifest) AddImage(filename string, ts time.Time, location, presignedUr func (m *Manifest) Close(endedAt int64) ([]byte, error) { m.EndedAt = endedAt - return json.Marshal(m) + buf := bytes.NewBuffer(nil) + enc := json.NewEncoder(buf) + enc.SetEscapeHTML(false) + if err := enc.Encode(m); err != nil { + return nil, err + } + + return buf.Bytes(), nil }