From e3bf0c897483ebd3c35a3e073f8d451f62a69dd0 Mon Sep 17 00:00:00 2001 From: alex wennerberg Date: Sat, 30 Oct 2021 23:14:26 -0700 Subject: [PATCH] fix --- atom.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/atom.go b/atom.go index c02f986..b7e6160 100644 --- a/atom.go +++ b/atom.go @@ -90,7 +90,7 @@ type Atom struct { func newAtomEntry(i *Item) *AtomEntry { id := i.Id // assume the description is text - s := &AtomSummary{Content: i.Description, Type: "text"} + s := &AtomSummary{Content: i.Description, Type: "text/plain"} if len(id) == 0 { // if there's no id set, try to create one, either from data or just a uuid @@ -124,7 +124,7 @@ func newAtomEntry(i *Item) *AtomEntry { // if there's a content, assume it's html if len(i.Content) > 0 { - x.Content = &AtomContent{Content: i.Content, Type: "text"} + x.Content = &AtomContent{Content: i.Content, Type: "text/plain"} } if i.Enclosure != nil && link_rel != "enclosure" { -- 2.45.2