nanohtml2text

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

README.txt (804B) - raw


      1 nanohtml2text
      2 =============
      3 
      4 0-dependency library to convert HTML to text; an alternative to
      5 https://crates.io/crates/html2text that doesn't use a full browser-grade HTML
      6 parser
      7 
      8 Based on https://github.com/k3a/html2text 
      9 
     10 Primarily useful for displaying HTML emails as text. YMMV depending on the
     11 structure of the HTML you're trying to convert. Built for the needs of
     12 Crabmail: https://git.alexwennerberg.com/crabmail/
     13 
     14 This library has one function, html2text, which takes a an html &str and
     15 returns a plain text String
     16 
     17 on crates.io:
     18 https://crates.io/crates/nanohtml2text
     19 
     20 Comes with a command line utility in main.rs to process from stdin if you want
     21 to test/experiment with it
     22 
     23 Contributing
     24 ------------
     25 git-send-email or git-request-pull to my mailing list:
     26 https://lists.flounder.online/patches/