2 stable releases

Uses old Rust 2015

1.0.1 Mar 21, 2019
1.0.0 Mar 27, 2017

#2041 in Text processing

Download history 100/week @ 2024-11-17 203/week @ 2024-11-24 215/week @ 2024-12-01 367/week @ 2024-12-08 356/week @ 2024-12-15 98/week @ 2024-12-22 50/week @ 2024-12-29 286/week @ 2025-01-05 377/week @ 2025-01-12 379/week @ 2025-01-19 145/week @ 2025-01-26 361/week @ 2025-02-02 372/week @ 2025-02-09 182/week @ 2025-02-16 378/week @ 2025-02-23 158/week @ 2025-03-02

1,156 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

~5.5MB
~87K SLoC