soiz1 commited on
Commit
bb2fbd3
·
verified ·
1 Parent(s): 0fa8c29

Update src/util/xml-escape.js

Browse files
Files changed (1) hide show
  1. 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.error(`Unexptected type ${typeof unsafe} in xmlEscape at: ${new Error().stack}`);
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;