Skip to content

Commit

Permalink
filter out control characters, fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
imsun committed Jan 9, 2017
1 parent c298c54 commit 121f8b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function *genFeed() {
})

this.set('Content-Type', 'application/xml; charset=utf-8')
this.body = feed.xml()
this.body = feed.xml().replace(/[\u0000-\u0008\u0011-\u001F\u007F\u0080-\u009F]/g, '�')
}

function *genFeedFromPage() {
Expand Down

0 comments on commit 121f8b8

Please sign in to comment.