alex wennerberg 4ebd7362e7 notes
2022-01-06 10:43:24 -08:00
2022-01-06 10:13:41 -08:00
2021-12-19 08:55:34 -08:00
2022-01-03 08:57:38 -08:00
2022-01-03 08:57:38 -08:00
2022-01-06 09:38:50 -08:00
2022-01-06 10:43:24 -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.

Usage:

use nanohtml2text::html2text;

let s = "<b>Hacker mode</b>"
assert_eq!(&html2text(s), "Hacker mode")

contributing
------------

https://alex.flounder.online/tech/contribute.gmi
gemini://alex.flounder.online/tech/contribute.gmi

Description
Languages
Rust 100%