2 stable releases

1.0.1 Mar 21, 2019
1.0.0 Mar 27, 2017

#150 in Text processing

Download history 454/week @ 2019-08-18 205/week @ 2019-08-25 119/week @ 2019-09-01 94/week @ 2019-09-08 125/week @ 2019-09-15 70/week @ 2019-09-22 93/week @ 2019-09-29 65/week @ 2019-10-06 112/week @ 2019-10-13 85/week @ 2019-10-20 86/week @ 2019-10-27 88/week @ 2019-11-03 74/week @ 2019-11-10 133/week @ 2019-11-17 60/week @ 2019-11-24

257 downloads per month
Used in 6 crates (1 directly)

MIT license

14KB
360 lines

html2runes

Build Status

A HTML to Text converter program written in Rust. Useful to convert html-only emails to plaintext for example.

Build

cargo build --release

Run

html2runes reads html on STDIN and outputs plaintext (currently only markdown supported) on STDOUT:

cat bad.html | target/release/html2runes

Result:

Text without a paragraph

Text inside paragraph

paragraph again
new line but no ending tags yet and here comes a bull shit token BLA TEXT which should be ignored, and here comes an image ![no alt text](bla.png)invalid image txt
[I am the link text](http://google.com)

Dependencies

~4MB
~68K SLoC