2 releases

0.1.1 May 21, 2024
0.1.0 Apr 18, 2021

#2790 in Parser implementations

Download history 1/week @ 2024-12-04 6/week @ 2024-12-11 9/week @ 2025-01-29 4/week @ 2025-02-05 86/week @ 2025-02-12 14/week @ 2025-02-19 9/week @ 2025-02-26

114 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
~54K SLoC