From 291bf96d15ac4fdfbb2c99e3d4de9fb9d2ee162b Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 3 Jan 2021 11:33:10 -0800 Subject: Do not strip tags for entry title Some technical blogs have titles like "" or "This is some source code". Miniflux was removing these elements which prevent rendering the title correctly. --- reader/json/json.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'reader/json/json.go') diff --git a/reader/json/json.go b/reader/json/json.go index 45e28888..18bbcaee 100644 --- a/reader/json/json.go +++ b/reader/json/json.go @@ -12,7 +12,6 @@ import ( "miniflux.app/logger" "miniflux.app/model" "miniflux.app/reader/date" - "miniflux.app/reader/sanitizer" "miniflux.app/url" ) @@ -123,9 +122,9 @@ func (j *jsonItem) GetHash() string { } func (j *jsonItem) GetTitle() string { - for _, value := range []string{j.Title, j.Summary, j.Text, j.HTML} { + for _, value := range []string{j.Title, j.Summary, j.Text, j.URL} { if value != "" { - return truncate(sanitizer.StripTags(value)) + return truncate(value) } } -- cgit v1.2.3