fixed xml

This commit is contained in:
2022-05-08 20:35:55 -06:00
parent f2380057d6
commit 2c3787d3f0

View File

@@ -83,5 +83,5 @@ func (bc *BlogController) RSSFeed(c *gin.Context) {
c.HTML(http.StatusInternalServerError, "internal_server_error", &gin.H{})
return
}
c.Data(http.StatusOK, "text/xml", []byte(strings.Replace("&", "&", rawXml.String(), -1)))
c.Data(http.StatusOK, "text/xml", []byte(strings.Replace(rawXml.String(), "&", "&", -1)))
}