mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-12-22 21:05:25 +01:00
Removed another whitespace in URLs from mastodon.
This commit is contained in:
parent
50cf546d6c
commit
b3519b09ab
1 changed files with 1 additions and 0 deletions
|
@ -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})
|
||||
|
|
Loading…
Reference in a new issue