Try to not escape HTML in timeline response
This commit is contained in:
parent
67fd816e3f
commit
55ef797f68
|
@ -72,6 +72,7 @@ func (h *microsubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||||
jw := json.NewEncoder(w)
|
jw := json.NewEncoder(w)
|
||||||
w.Header().Add("Content-Type", "application/json")
|
w.Header().Add("Content-Type", "application/json")
|
||||||
jw.SetIndent("", " ")
|
jw.SetIndent("", " ")
|
||||||
|
jw.SetEscapeHTML(false)
|
||||||
err = jw.Encode(timeline)
|
err = jw.Encode(timeline)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
http.Error(w, err.Error(), 500)
|
http.Error(w, err.Error(), 500)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user