From ba1b797b0fe956702960d5f566589cda8b9f29d9 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Thu, 4 Apr 2024 16:48:29 +0200 Subject: [PATCH] Add initial XML tag with UTF-8 standard encoding --- rss.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rss.go b/rss.go index 11bbf9e..da6cce5 100644 --- a/rss.go +++ b/rss.go @@ -239,5 +239,5 @@ func (f *Feed) ToXML() (string, error) { return "", fmt.Errorf("error XML encoding feed: %v", err) } - return string(xml), nil + return `` + string(xml), nil }