1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Add workaround for entry title with double encoded entities

Example: 'Text'
This commit is contained in:
Frédéric Guillot 2021-02-13 13:26:55 -08:00 committed by fguillot
parent 793f475edd
commit 5043749b9f
2 changed files with 49 additions and 2 deletions

View file

@ -6,6 +6,7 @@ package rss // import "miniflux.app/reader/rss"
import (
"encoding/xml"
"html"
"path"
"strconv"
"strings"
@ -257,7 +258,7 @@ func (r *rssItem) entryTitle() string {
}
}
return strings.TrimSpace(title)
return html.UnescapeString(strings.TrimSpace(title))
}
func (r *rssItem) entryContent() string {