Skip to content

Commit

Permalink
Closes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
FokkeZB committed Jul 10, 2015
1 parent b88513d commit 7a93253
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@ module.exports = function(html, callback) {
callback(null, attr);
}
}));

// remove newlines
html = html.replace(/[\r\n]+/gm, ' ').replace(/\s+/g, ' ');

parser.parseComplete(html);

Expand Down

0 comments on commit 7a93253

Please sign in to comment.