xh icon indicating copy to clipboard operation
xh copied to clipboard

Feature request: pretty print HTML / XML

Open eproxus opened this issue 3 years ago • 2 comments

It would be nice if HTML and XML were pretty printed the same way JSON is.

eproxus avatar Feb 11 '22 13:02 eproxus

HTTPie supports pretty-printing XML responses, so we're probably going to add support for it in xh. We also wouldn't mind supporting pretty-printed HTML responses if we find a crate that handles that.

Edit: Pretty-printing XML/HTML might make it harder to stream responses by default. See https://github.com/ducaale/xh/pull/233#issuecomment-1052445527

ducaale avatar Feb 11 '22 19:02 ducaale

Batcat does this, its code can be taken advantage of.

amurahul avatar Aug 12 '23 19:08 amurahul