mirror of
https://salsa.debian.org/mdosch/feed-to-muc.git
synced 2024-11-22 14:08:39 +01:00
Adjust to new html2text behavior.
This commit is contained in:
parent
1a34016129
commit
f5f89089e5
1 changed files with 1 additions and 1 deletions
|
@ -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><span class="">`, "", -1)
|
||||||
mastodonContent = strings.Replace(mastodonContent, `</span>`, "", -1)
|
mastodonContent = strings.Replace(mastodonContent, `</span>`, "", -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 {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue