aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web/handlers/export.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmd/web/handlers/export.go b/cmd/web/handlers/export.go
index a4db69d..ecb867b 100644
--- a/cmd/web/handlers/export.go
+++ b/cmd/web/handlers/export.go
@@ -86,16 +86,13 @@ func (ctx *rssExportContext) feed(w http.ResponseWriter, r *http.Request) {
}
}
- brief := html.EscapeString(string(p.Brief))
- content := html.EscapeString(string(p.Content))
-
feed.Items = append(feed.Items, Item{
Title: title,
Link: "https://" + ctx.serv + "/post?id=" + strconv.Itoa(p.Id),
Guid: "https://" + ctx.serv + "/post?id=" + strconv.Itoa(p.Id),
- Description: brief,
+ Description: "<![CDATA[<" + string(p.Brief) + "]]>",
PubDate: p.FormattedTime,
- Content: content,
+ Content: "<![CDATA[<" + string(p.Content) + "]]>",
})
}