2 releases

0.1.1 May 21, 2024
0.1.0 Apr 18, 2021

#2199 in Parser implementations

Download history 14/week @ 2024-07-15 5/week @ 2024-07-29 126/week @ 2024-09-16 5/week @ 2024-09-23

131 downloads per month

GPL-3.0-or-later

4KB

prettyish-html

A "meh, good enough" HTML prettifier. The output can definitely be improved, but it's fast and lightweight. It might become better in the future, just depends.

It assumes some level of well-formedness of the HTML, though it doesn't do any form of validation either.

Usage

println!("{}", prettyish_html::prettify("<html><body>...</body></html>"));

Dependencies

~2.2–3MB
~55K SLoC