Skip to content

Commit ac4e328

Browse files
committed
Enable invalidCharReplacement instead of crashing
Open to exposing this if people really need it.
1 parent 07a825c commit ac4e328

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

index.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ const jsonfeedToRSSObject = require('./jsonfeed-to-rss-object')
1111
*/
1212
module.exports = function jsonfeedToRSS (jsonfeed, opts) {
1313
const feedObj = jsonfeedToRSSObject(jsonfeed, opts)
14-
const feed = builder.create(feedObj, { encoding: 'utf-8', skipNullAttributes: true, skipNullNodes: true })
14+
const feed = builder.create(feedObj, {
15+
encoding: 'utf-8',
16+
skipNullAttributes: true,
17+
skipNullNodes: true,
18+
invalidCharReplacement: ''
19+
})
1520
return feed.end({ pretty: true, allowEmpty: false })
1621
}

0 commit comments

Comments
 (0)