diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 03e427f..8470291 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -49,9 +49,6 @@ func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) { if err != nil { return } - for _, entry := range posts { - entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n") - } categories, err := h.mindflowDB.Categories() if err != nil { @@ -68,9 +65,6 @@ func (h *Handlers) MindflowAdmin(w http.ResponseWriter, r *http.Request) { log.Println(err) return } - for _, entry := range posts { - entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n") - } categories, err := h.mindflowDB.Categories() if err != nil { @@ -165,10 +159,6 @@ func (h *Handlers) RSS(w http.ResponseWriter, r *http.Request) { return } - for _, entry := range posts { - entry.Body = strings.ReplaceAll(entry.Body, "\\n", "\n") - } - web.RSS(r.URL.Scheme+"://"+r.Host, "Arav", posts, r, w) }