Skip to content

Commit

Permalink
do not escape html
Browse files Browse the repository at this point in the history
  • Loading branch information
frostbyte73 committed Oct 30, 2024
1 parent 3e937c1 commit 15b7491
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkg/config/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
package config

import (
"bytes"
"encoding/json"
"sync"
"time"
Expand Down Expand Up @@ -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
}

0 comments on commit 15b7491

Please sign in to comment.