From 0cdcec10caffab74ff742e7bc8379a956357d73f Mon Sep 17 00:00:00 2001
From: Peter De Wachter
Date: Tue, 1 Jan 2019 22:01:19 +0100
Subject: More robust Atom text handling
Miniflux couldn't deal with XHTML Summary elements.
- Make Summary an 'atomContent' field
- Define an atomContentToString function rather than inling it three times
- Also properly escape special characters in plain text fields.
---
reader/atom/parser_test.go | 78 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
(limited to 'reader/atom/parser_test.go')
diff --git a/reader/atom/parser_test.go b/reader/atom/parser_test.go
index 82a569ac..7339becc 100644
--- a/reader/atom/parser_test.go
+++ b/reader/atom/parser_test.go
@@ -282,6 +282,84 @@ func TestParseEntryTitleWithXHTML(t *testing.T) {
}
}
+func TestParseEntrySummaryWithXHTML(t *testing.T) {
+ data := `
+
+ Example Feed
+
+
+
+ Test Test
+
+ urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a
+ 2003-12-13T18:30:02Z
+