From 960dda762ec26485c79459ff69adc3dfe84031c6 Mon Sep 17 00:00:00 2001 From: liberodark Date: Fri, 16 Aug 2019 14:34:44 +0200 Subject: [PATCH] Try to fix RSS Fix https://github.com/matrix-org/go-neb/issues/299 --- src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go index d6b34e2..938d5b5 100644 --- a/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go +++ b/src/github.com/matrix-org/go-neb/services/rssbot/rssbot.go @@ -351,11 +351,11 @@ func (s *Service) sendToRooms(cli *gomatrix.Client, feedURL string, feed *gofeed func itemToHTML(feed *gofeed.Feed, item gofeed.Item) gomatrix.HTMLMessage { return gomatrix.HTMLMessage{ Body: fmt.Sprintf("%s: %s ( %s )", - html.EscapeString(feed.Title), html.EscapeString(item.Title), html.EscapeString(item.Link)), + html.UnescapeString(feed.Title), html.UnescapeString(item.Title), html.UnescapeString(item.Link)), MsgType: "m.notice", Format: "org.matrix.custom.html", FormattedBody: fmt.Sprintf("%s:
%s", - html.EscapeString(feed.Title), html.EscapeString(item.Link), html.EscapeString(item.Title)), + html.UnescapeString(feed.Title), html.UnescapeString(item.Link), html.UnescapeString(item.Title)), // FeedTitle: //
// Title of the Entry