danmactough / node-feedparser

Robust RSS, Atom, and RDF feed parsing in Node.js
Other
1.97k stars 192 forks source link

Handles line breaks in xml declaration. #176

Closed wberndt closed 8 years ago

wberndt commented 8 years ago

I came across a rss-feed with the following declaration:

<?xml version="1.0"
encoding="UTF-8" ?>
<rss version="0.91">
[...]

This breaks the handleProcessingInstruction function as it splits first by whitespace and then by '='. I'm not even sure if line breaks in the declaration are valid, but apparently they exist and fixing it is really simple.

danmactough commented 8 years ago

Thanks @wberndt. Sorry for the long delay!

Published as v1.1.5