Crates.io | html2runes |
lib.rs | html2runes |
version | 1.0.1 |
source | src |
created_at | 2017-03-27 17:43:20.339893 |
updated_at | 2019-03-21 08:00:27.999088 |
description | An HTML to Text converter. |
homepage | https://gitlab.com/spacecowboy/html2runes |
repository | https://gitlab.com/spacecowboy/html2runes |
max_upload_size | |
id | 9171 |
size | 22,741 |
A HTML to Text converter program written in Rust. Useful to convert html-only emails to plaintext for example.
cargo build --release
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)