mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +00:00
Disable strict XML parsing
This change should improve parsing of broken XML feeds. See https://golang.org/pkg/encoding/xml/#Decoder
This commit is contained in:
parent
ca48f7612a
commit
36d7732234
8 changed files with 95 additions and 0 deletions
|
@ -18,6 +18,7 @@ func Parse(data io.Reader) (*model.Feed, *errors.LocalizedError) {
|
|||
feed := new(rssFeed)
|
||||
decoder := xml.NewDecoder(data)
|
||||
decoder.Entity = xml.HTMLEntity
|
||||
decoder.Strict = false
|
||||
decoder.CharsetReader = encoding.CharsetReader
|
||||
|
||||
err := decoder.Decode(feed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue