Skip to content

Commit

Permalink
Merge pull request #426 from tablelandnetwork/jsign/ampers
Browse files Browse the repository at this point in the history
Avoid html escaping in GetTable API
  • Loading branch information
jsign authored Dec 23, 2022
2 parents 300820e + 9a8be4c commit 8ea0b74
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/router/controllers/system.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ func (c *SystemController) GetTable(rw http.ResponseWriter, r *http.Request) {
}

rw.WriteHeader(http.StatusOK)
_ = json.NewEncoder(rw).Encode(metadata)
enc := json.NewEncoder(rw)
enc.SetEscapeHTML(false)
_ = enc.Encode(metadata)
}

// GetTablesByController handles the GET /chain/{chainID}/tables/controller/{address} call.
Expand Down

0 comments on commit 8ea0b74

Please sign in to comment.