Skip to content

spacecowboy/html2runes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

A HTML to Text converter program written in Rust.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published