From f5f89089e57843154bfd8f45715ed6d1dd1ca082 Mon Sep 17 00:00:00 2001 From: Martin Dosch Date: Mon, 13 Dec 2021 10:30:00 +0100 Subject: [PATCH] Adjust to new html2text behavior. --- getarticles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getarticles.go b/getarticles.go index 1c6c85b..02201a9 100644 --- a/getarticles.go +++ b/getarticles.go @@ -206,7 +206,7 @@ func getArticles(feedURL string, max int, noExcerpt bool) (string, error) { mastodonContent = strings.Replace(mastodonContent, ``, "", -1) mastodonContent = strings.Replace(mastodonContent, ``, "", -1) mastodonContent = strings.Replace(mastodonContent, ``, "", -1) - mastodonContent, err = html2text.FromString(mastodonContent, html2text.Options{OmitLinks: true}) + mastodonContent, err = html2text.FromString(mastodonContent, html2text.Options{OmitLinks: true, TextOnly: true}) if err != nil { return "", err }