nanohtml2text

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

main.rs (199B) - raw


      1 use nanohtml2text::html2text;
      2 use std::io::Read;
      3 
      4 fn main() {
      5     let mut buffer = String::new();
      6     std::io::stdin().read_to_string(&mut buffer).unwrap();
      7     println!("{}", html2text(&buffer));
      8 }