|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
487 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | exports.type = 'perItem';
|
|---|
| 4 |
|
|---|
| 5 | exports.active = true;
|
|---|
| 6 |
|
|---|
| 7 | exports.description = 'removes XML processing instructions';
|
|---|
| 8 |
|
|---|
| 9 | /**
|
|---|
| 10 | * Remove XML Processing Instruction.
|
|---|
| 11 | *
|
|---|
| 12 | * @example
|
|---|
| 13 | * <?xml version="1.0" encoding="utf-8"?>
|
|---|
| 14 | *
|
|---|
| 15 | * @param {Object} item current iteration item
|
|---|
| 16 | * @return {Boolean} if false, item will be filtered out
|
|---|
| 17 | *
|
|---|
| 18 | * @author Kir Belevich
|
|---|
| 19 | */
|
|---|
| 20 | exports.fn = function(item) {
|
|---|
| 21 |
|
|---|
| 22 | return !(item.processinginstruction && item.processinginstruction.name === 'xml');
|
|---|
| 23 |
|
|---|
| 24 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.