prettyish-html 0.1.1

a probably good enough HTML prettifier
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 5.81 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • legoktm/prettyish-html
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • legoktm

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>"));