Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: pretty print HTML / XML #231

Open
eproxus opened this issue Feb 11, 2022 · 2 comments
Open

Feature request: pretty print HTML / XML #231

eproxus opened this issue Feb 11, 2022 · 2 comments

Comments

@eproxus
Copy link

eproxus commented Feb 11, 2022

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

@ducaale
Copy link
Owner

ducaale commented Feb 11, 2022

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 #233 (comment)

@amurahul
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants