ring

Alejandro 2025-11-13T19:51:45.458369Z

Hello. How to indent html that's being sent to browser? I use enlive for html transformations, and I get, e.g., <ul><li>...</li></ul> on a single line, and I'd like to pretty print this, so that these tags are on separate lines and properly indented. I guess hiccup can parse html and then pretty print it, but this seems like an overkill to me.

weavejester 2025-11-13T22:44:52.264009Z

You could use a HTML parsing library like JSoup. Parse the HTML string, then output it with pretty printing turned on.

🙏 1