Adjust to new html2text behavior.

This commit is contained in:
Martin Dosch 2021-12-13 10:30:00 +01:00
parent 1a34016129
commit f5f89089e5

View file

@ -206,7 +206,7 @@ func getArticles(feedURL string, max int, noExcerpt bool) (string, error) {
mastodonContent = strings.Replace(mastodonContent, `</span><span class="">`, "", -1)
mastodonContent = strings.Replace(mastodonContent, `</span>`, "", -1)
mastodonContent = strings.Replace(mastodonContent, `<span>`, "", -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
}