diff --git a/lib/xmldoc.js b/lib/xmldoc.js index c1c14d0..7f8b22a 100644 --- a/lib/xmldoc.js +++ b/lib/xmldoc.js @@ -245,7 +245,7 @@ function extend(destination, source) { // escapes XML entities like "<", "&", etc. function escapeXML(value){ - return value.replace(//g, ">").replace(/&/g, '&').replace(/'/g, ''').replace(/"/g, '"'); + return value.replace(/&/g, '&').replace(//g, ">").replace(/'/g, ''').replace(/"/g, '"'); } // Are we being used in a Node-like environment?