From d8be5d4de062da335e33a30c5e514efe250c120f Mon Sep 17 00:00:00 2001 From: Samuel Johnson Date: Thu, 11 Dec 2025 03:54:00 -0500 Subject: Unescape HTML in a different way --- cmd/web/handlers/export.go | 4 +--- 1 file changed, 1 insertion(+), 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("<"), []byte("<"), -1) + out = []byte(html.UnescapeString(string(out))) w.Write([]byte(xml.Header + `` + string(out) + ``)) } -- cgit v1.2.3