xh
xh copied to clipboard
Feature request: pretty print HTML / XML
It would be nice if HTML and XML were pretty printed the same way JSON is.
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
Batcat does this, its code can be taken advantage of.