removeMetadata.js 392 B

1234567891011121314151617181920212223
  1. 'use strict';
  2. exports.type = 'perItem';
  3. exports.active = true;
  4. exports.description = 'removes <metadata>';
  5. /**
  6. * Remove <metadata>.
  7. *
  8. * http://www.w3.org/TR/SVG/metadata.html
  9. *
  10. * @param {Object} item current iteration item
  11. * @return {Boolean} if false, item will be filtered out
  12. *
  13. * @author Kir Belevich
  14. */
  15. exports.fn = function(item) {
  16. return !item.isElem('metadata');
  17. };