Update src/util/xml-escape.js
Browse files- src/util/xml-escape.js +2 -2
src/util/xml-escape.js
CHANGED
|
@@ -15,7 +15,7 @@ const xmlEscape = function (unsafe) {
|
|
| 15 |
// See #1030
|
| 16 |
unsafe = String(unsafe);
|
| 17 |
} else {
|
| 18 |
-
log.
|
| 19 |
return unsafe;
|
| 20 |
}
|
| 21 |
}
|
|
@@ -41,4 +41,4 @@ const escapeAttribute = unsafe => {
|
|
| 41 |
};
|
| 42 |
|
| 43 |
module.exports = xmlEscape;
|
| 44 |
-
module.exports.escapeAttribute = escapeAttribute;
|
|
|
|
| 15 |
// See #1030
|
| 16 |
unsafe = String(unsafe);
|
| 17 |
} else {
|
| 18 |
+
log.warn(`Unexptected type ${typeof unsafe} in xmlEscape at: ${new Error().stack}`);
|
| 19 |
return unsafe;
|
| 20 |
}
|
| 21 |
}
|
|
|
|
| 41 |
};
|
| 42 |
|
| 43 |
module.exports = xmlEscape;
|
| 44 |
+
module.exports.escapeAttribute = escapeAttribute;
|