2 stable releases

Uses old Rust 2015

1.0.1 Mar 21, 2019
1.0.0 Mar 27, 2017

#1621 in Text processing

Download history 206/week @ 2024-03-13 285/week @ 2024-03-20 299/week @ 2024-03-27 293/week @ 2024-04-03 229/week @ 2024-04-10 280/week @ 2024-04-17 275/week @ 2024-04-24 263/week @ 2024-05-01 262/week @ 2024-05-08 249/week @ 2024-05-15 260/week @ 2024-05-22 267/week @ 2024-05-29 215/week @ 2024-06-05 188/week @ 2024-06-12 234/week @ 2024-06-19 175/week @ 2024-06-26

855 downloads per month
Used in 9 crates (via webgl_generator)

MIT license

15KB
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
~68K SLoC