-
Notifications
You must be signed in to change notification settings - Fork 39
RSS feed broken if CDATA contains lower ascii characters #33
Comments
Here is the snipped I used:
E.g., with a class variable or flag and can be postponed until feed is about to be parsed. Let me know if this is a dumb idea, or if it has unforeseeable consequences. |
That might be the way to go, though I would do performance tests first to make sure it doesn’t have an impact. It’s also possible that there’s some kind of way to tell libxml2 to ignore these. (I just haven’t looked yet.) |
I don't think you want to do most of that range math; AIUI the for (NSUInteger i = 0; i < byteRange.length; i++) { Other than that, seems fine to me! |
Oh, you might also be able to specify Not sure if the expected |
Hi there,
I just stumbled upon a feed that uses chars in the range \0x01 - \0x1F (CDATA description).
Although libxml2 isn't supposed to handle this, RSParser will break early and drop the remaining feed articles. When parsing the RSS below, only the first two items will be returned.
It should be enough to regex and replace these, however, I was wondering if there is a libxml2 flag that could be used instead…
The text was updated successfully, but these errors were encountered: