nanohtml2text

Lightweight html to text converter in Rust
git clone git://git.alexwennerberg.com/nanohtml2text
Log | Files | Refs | README | LICENSE

commit 8df0711d3de7b56ba53f5e2b0f7af66b92dd4568
parent 07b0167d8220baccf1e0e7701accf3e23efbc10f
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu,  6 Jan 2022 21:08:56 -0800

edit readme

Diffstat:
MREADME | 16+++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

diff --git a/README b/README @@ -1,20 +1,26 @@ 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 +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 -Primarily useful for displaying HTML emails. YMMV depending on the structure of the HTML you're trying to convert. +Primarily useful for displaying HTML emails. YMMV depending on the structure of +the HTML you're trying to convert. -This library has one function, html2text, which takes a an html &str and returns a plain text String +This library has one function, html2text, which takes a an html &str and +returns a plain text String -use the crate: +on crates.io: https://crates.io/crates/nanohtml2text +comes with a command line utility in main.rs to process from stdin if you want +to test/experiment with it + contributing ------------ https://alex.flounder.online/tech/contribute.gmi -gemini://alex.flounder.online/tech/contribute.gmi