Johann150 0b0d350243 refactor core parser
Fix some bugs in previously refactored functions.
Change the general processing idea to be "tag oriented" instead of
naively scanning the whole HTML string.
Collapse the cases for different tags that are handled the same.
2022-01-13 02:05:12 +01:00
2022-01-13 02:05:12 +01:00
2021-12-19 08:55:34 -08:00
2022-01-08 17:17:12 -08:00
2022-01-08 17:17:12 -08:00
2022-01-06 09:38:50 -08:00
2022-01-08 17:17:12 -08:00

nanohtml2text
=============

0-dependency library to convert HTML to text; an alternative to
https://crates.io/crates/html2text that doesn't use a full browser-grade HTML
parser

Based on https://github.com/k3a/html2text -- basically a line-for-line rewreite

Primarily useful for displaying HTML emails. 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:
https://crates.io/crates/nanohtml2text

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 my mailing list:
https://lists.flounder.online/patches/
Description
Languages
Rust 100%