Added all bugfixes from current state of RSParser. Except HTML entities are still decoded for title, abstract and body.
This commit is contained in:
@@ -223,12 +223,8 @@ static NSString *kRelatedValue = @"related";
|
||||
else if (EqualBytes(localName, "source", 6)) {
|
||||
self.parsingSource = NO;
|
||||
}
|
||||
return;
|
||||
case 8:
|
||||
if (!self.parsingArticle && !self.parsingSource && self.parsedFeed.subtitle.length == 0) {
|
||||
if (EqualBytes(localName, "subtitle", 8)) {
|
||||
self.parsedFeed.subtitle = SAXParser.currentStringWithTrimmedWhitespace;
|
||||
}
|
||||
else if (isArticle && EqualBytes(localName, "issued", 6)) { // Atom 0.3 date
|
||||
self.currentArticle.datePublished = [self dateFromCharacters:SAXParser.currentCharacters];;
|
||||
}
|
||||
return;
|
||||
case 7:
|
||||
@@ -244,6 +240,16 @@ static NSString *kRelatedValue = @"related";
|
||||
}
|
||||
}
|
||||
return;
|
||||
case 8:
|
||||
if (!self.parsingArticle && !self.parsingSource && self.parsedFeed.subtitle.length == 0) {
|
||||
if (EqualBytes(localName, "subtitle", 8)) {
|
||||
self.parsedFeed.subtitle = SAXParser.currentStringWithTrimmedWhitespace;
|
||||
}
|
||||
}
|
||||
else if (isArticle && EqualBytes(localName, "modified", 8)) { // Atom 0.3 date
|
||||
self.currentArticle.dateModified = [self dateFromCharacters:SAXParser.currentCharacters];;
|
||||
}
|
||||
return;
|
||||
case 9:
|
||||
if (isArticle && EqualBytes(localName, "published", 9)) {
|
||||
self.currentArticle.datePublished = [self dateFromCharacters:SAXParser.currentCharacters];
|
||||
|
||||
Reference in New Issue
Block a user