nanohtml2text

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

README (759B)


      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 -- basically a line-for-line rewreite
      9 
     10 Primarily useful for displaying HTML emails. YMMV depending on the structure of
     11 the HTML you're trying to convert.
     12 
     13 This library has one function, html2text, which takes a an html &str and
     14 returns a plain text String
     15 
     16 on crates.io:
     17 https://crates.io/crates/nanohtml2text
     18 
     19 comes with a command line utility in main.rs to process from stdin if you want
     20 to test/experiment with it
     21 
     22 Contributing
     23 ------------
     24 git-send-email or git-request-pull to my mailing list:
     25 https://lists.flounder.online/patches/