aboutsummaryrefslogtreecommitdiff
path: root/cmd/web/handlers/export.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/web/handlers/export.go')
-rw-r--r--cmd/web/handlers/export.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd/web/handlers/export.go b/cmd/web/handlers/export.go
index 3f18a7f..96ba68d 100644
--- a/cmd/web/handlers/export.go
+++ b/cmd/web/handlers/export.go
@@ -110,9 +110,7 @@ func (ctx *rssExportContext) feed(w http.ResponseWriter, r *http.Request) {
// This can be configured on the JSON encoder.
// It cannot on the XML.
// God only knows why.
- out = bytes.Replace(out, []byte("&"), []byte("&"), -1)
- out = bytes.Replace(out, []byte(">"), []byte(">"), -1)
- out = bytes.Replace(out, []byte("&lt;"), []byte("<"), -1)
+ out = []byte(html.UnescapeString(string(out)))
w.Write([]byte(xml.Header + `<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">` + string(out) + `</rss>`))
}