Removed another whitespace in URLs from mastodon.

This commit is contained in:
Martin Dosch 2018-12-20 10:03:07 +01:00
parent 50cf546d6c
commit b3519b09ab

View file

@ -197,6 +197,7 @@ func getArticles(feedURL string, max int, noExcerpt bool) (string, error) {
// Strip HTML as we want to get plain text.
mastodonContent := strings.Replace(article.Description, `</span><span class="ellipsis">`, "", -1)
mastodonContent = strings.Replace(mastodonContent, `</span><span class="invisible">`, "", -1)
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})