August is a Rust crate & program for converting HTML to plain text. It is specifically intended for rendering HTML emails as text.
Add this to your Cargo.toml
:
toml
[dependencies]
august = "*"
and this to your code: ```rust use august;
let input = "
Hello
Here's some HTML!" println!("{}", august::convert(input, 79)); ```The output now looks like this: ``` Hello
/Here's some HTML!/ ```
, , , and probably a bunch that I forgot. These are not commonly seen in emails so they are not high priority