2 stable releases

Uses old Rust 2015

1.0.1 Mar 21, 2019
1.0.0 Mar 27, 2017

#1525 in Text processing

Download history 155/week @ 2023-11-29 135/week @ 2023-12-06 216/week @ 2023-12-13 211/week @ 2023-12-20 96/week @ 2023-12-27 130/week @ 2024-01-03 232/week @ 2024-01-10 195/week @ 2024-01-17 147/week @ 2024-01-24 88/week @ 2024-01-31 178/week @ 2024-02-07 241/week @ 2024-02-14 226/week @ 2024-02-21 234/week @ 2024-02-28 233/week @ 2024-03-06 178/week @ 2024-03-13

897 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

~4MB
~67K SLoC