From 07b0167d8220baccf1e0e7701accf3e23efbc10f Mon Sep 17 00:00:00 2001 From: alex wennerberg Date: Thu, 6 Jan 2022 10:53:49 -0800 Subject: [PATCH] Update README --- README | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/README b/README index ce770be..53bca05 100644 --- a/README +++ b/README @@ -7,12 +7,10 @@ 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: +This library has one function, html2text, which takes a an html &str and returns a plain text String -use nanohtml2text::html2text; - -let s = "Hacker mode" -assert_eq!(&html2text(s), "Hacker mode") +use the crate: +https://crates.io/crates/nanohtml2text contributing ------------