Files
nanohtml2text/README
alex wennerberg 33155bbb0d Update readme
2022-01-06 09:37:59 -08:00

16 lines
404 B
Plaintext

nanohtml2text
=============
0-dependency library to convert HTML to text; an alternative to https://crates.io/crates/html2text that doesn't use a full browser-grade HTML parser
Based on https://github.com/k3a/html2text -- basically a line-for-line rewreite
Useful for displaying HTML emails
Usage:
use nanohtml2text::html2text;
let s = "<b>Hacker mode</b>"
assert_eq!(&html2text(s), "Hacker mode")