From ecf3fd0271ba1bbc127b0927064985c3e2c6b67f Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Mon, 9 Feb 2026 08:43:04 -0600 Subject: [PATCH] fix: unescape HTML entities in SearXNG article titles and descriptions --- go-backend/internal/services/official_accounts_service.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go-backend/internal/services/official_accounts_service.go b/go-backend/internal/services/official_accounts_service.go index 30bc777..4011653 100644 --- a/go-backend/internal/services/official_accounts_service.go +++ b/go-backend/internal/services/official_accounts_service.go @@ -5,6 +5,7 @@ import ( "encoding/json" "encoding/xml" "fmt" + "html" "io" "net/http" "strings" @@ -291,9 +292,9 @@ func (s *OfficialAccountsService) FetchSearXNGNews(ctx context.Context, site str continue } item := RSSItem{ - Title: r.Title, + Title: html.UnescapeString(r.Title), Link: r.URL, - Description: r.Content, + Description: html.UnescapeString(r.Content), GUID: r.URL, // use the actual URL as GUID for dedup } if r.PublishedDate != "" {