2 stable releases

1.0.1 Mar 21, 2019
1.0.0 Mar 27, 2017

#123 in Text processing

Download history 54/week @ 2019-04-03 61/week @ 2019-04-10 51/week @ 2019-04-17 51/week @ 2019-04-24 56/week @ 2019-05-01 51/week @ 2019-05-08 56/week @ 2019-05-15 59/week @ 2019-05-22 66/week @ 2019-05-29 49/week @ 2019-06-05 60/week @ 2019-06-12 65/week @ 2019-06-19 47/week @ 2019-06-26 62/week @ 2019-07-03 73/week @ 2019-07-10

257 downloads per month
Used in 4 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

~4.5MB
~69K SLoC