#html #pretty #print

prettyish-html

a probably good enough HTML prettifier

2 releases

0.1.1 May 21, 2024
0.1.0 Apr 18, 2021

#2257 in Parser implementations

Download history 12/week @ 2024-07-18 4/week @ 2024-07-25 1/week @ 2024-08-01 121/week @ 2024-09-12 9/week @ 2024-09-19 1/week @ 2024-09-26

99 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