Reworked fixers and NNTP output: now later does dehtmlifying, not fixers. They work with HTML data.

This commit is contained in:
2026-08-09 07:46:06 +05:00
parent 7b13dce342
commit dd0e1e9f4a
5 changed files with 22 additions and 29 deletions
+1 -13
View File
@@ -1,21 +1,9 @@
package fixers
import (
"log/slog"
"github.com/mmcdole/gofeed"
"github.com/prodigeris/html2text"
)
func githubFixer(item *gofeed.Item) (string, string) {
plainTextBody, err := html2text.FromString(item.Content, html2text.Options{
PrettyTables: true,
})
if err != nil {
slog.Error("Failed to de-HTMLify github body!", "error", err.Error())
return item.Title, item.Content
}
return item.Title, plainTextBody
return item.Title, item.Content
}