Skip to content

Commit eb5e501

Browse files
authored
replace links with inner text when turning html to plain text (#106)
1 parent d590481 commit eb5e501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/rssole/item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func (w *wrappedItem) Summary() string {
184184
return *w.summary
185185
}
186186

187-
plainDesc := html2text.HTML2Text(w.Description())
187+
plainDesc := html2text.HTML2TextWithOptions(w.Description(), html2text.WithLinksInnerText())
188188
if len(plainDesc) > maxDescriptionLength {
189189
plainDesc = plainDesc[:maxDescriptionLength]
190190
}

0 commit comments

Comments
 (0)