nanohtml2text

Crates.ionanohtml2text
lib.rsnanohtml2text
version0.2.1
sourcesrc
created_at2022-01-06 18:52:23.870047
updated_at2024-10-08 14:27:42.355213
descriptionA zero-dependency library to convert HTML to plain text
homepage
repositoryhttps://git.sr.ht/~aw/nanohtml2text
max_upload_size
id509123
size78,015
Alex Wennerberg (alexwennerberg)

documentation

README

nanohtml2text

0-dependency library to convert HTML to text; an alternative to html2text that doesn't use a full browser-grade HTML parser

Based on this go html2text library

Primarily useful for displaying HTML emails as text. YMMV depending on the structure of the HTML you're trying to convert.

This library has one function, html2text, which takes a an html &str and returns a plain text String

On crates.io

Comes with a command line utility in main.rs to process from stdin if you want to test/experiment with it

Contributing

git-send-email or git-request-pull to me

Commit count: 0

cargo fmt