feedsmith
Version:
Robust and fast parser and generator for RSS, Atom, JSON Feed, and RDF feeds, with support for Podcast, iTunes, Dublin Core, and OPML files.
23 lines • 666 B
JavaScript
import { XMLParser } from 'fast-xml-parser';
import { parserConfig } from '../../../common/config.js';
export const stopNodes = [
// TODO: What about the namespaces?
'rdf:rdf.channel.title',
'rdf:rdf.channel.link',
'rdf:rdf.channel.description',
'rdf:rdf.image.title',
'rdf:rdf.image.link',
'rdf:rdf.image.url',
'rdf:rdf.item.title',
'rdf:rdf.item.link',
'rdf:rdf.item.description',
'rdf:rdf.textinput.title',
'rdf:rdf.textinput.description',
'rdf:rdf.textinput.name',
'rdf:rdf.textinput.link',
];
export const parser = new XMLParser({
...parserConfig,
stopNodes,
});
//# sourceMappingURL=config.js.map