From 55ef797f68f3690f1c80efd37ccce779600ed3ff Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 28 Jul 2018 13:42:32 +0200 Subject: [PATCH] Try to not escape HTML in timeline response --- cmd/eksterd/microsub.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/eksterd/microsub.go b/cmd/eksterd/microsub.go index c98c2f2..0b00657 100644 --- a/cmd/eksterd/microsub.go +++ b/cmd/eksterd/microsub.go @@ -72,6 +72,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { jw := json.NewEncoder(w) w.Header().Add("Content-Type", "application/json") jw.SetIndent("", " ") + jw.SetEscapeHTML(false) err = jw.Encode(timeline) if err != nil { http.Error(w, err.Error(), 500)