Sha256: 452b0665046b1c308c67dd57e6a575240ba93892e13205eb6da1b85cbc53ad87
Contents?: true
Size: 487 Bytes
Versions: 34
Compression:
Stored size: 487 Bytes
Contents
'use strict'; exports.type = 'perItem'; exports.active = true; exports.description = 'removes XML processing instructions'; /** * Remove XML Processing Instruction. * * @example * <?xml version="1.0" encoding="utf-8"?> * * @param {Object} item current iteration item * @return {Boolean} if false, item will be filtered out * * @author Kir Belevich */ exports.fn = function(item) { return !(item.processinginstruction && item.processinginstruction.name === 'xml'); };
Version data entries
34 entries across 31 versions & 11 rubygems