From 30ed0739aa64abdb1dc4372c6618c4c5f35cd992 Mon Sep 17 00:00:00 2001 From: John Conway Date: Fri, 17 May 2019 18:57:04 +0100 Subject: [RSS] CData fix --- src/FeedNim/rss.nim | 14 +++++++++----- tests/test_rss | Bin 470952 -> 480488 bytes tests/test_rss.xml | 2 +- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/FeedNim/rss.nim b/src/FeedNim/rss.nim index c65b13f..47f141a 100644 --- a/src/FeedNim/rss.nim +++ b/src/FeedNim/rss.nim @@ -97,11 +97,15 @@ func parseCategories( node: XmlNode ): seq[RSSCategory] = return categories func parseText ( node: XmlNode ): string = - var content = node.innerText - if content.len() > 14: - if content[0 .. 8] == "Aeroplanes not Airplanes http://joe.bloggs/posts/1 Sat, 07 Sep 2002 00:00:01 GMT - Aero- not air-, fools! + jane@joe.bloggs (Jane Bloggs) Words http://joe.bloggs/posts/1/comments -- cgit v1.2.3