Comparing version 5.3.1 to 5.3.2
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"main": "./parser.js", | ||
@@ -19,0 +19,0 @@ "bugs": { |
@@ -65,4 +65,2 @@ 'use strict'; | ||
function decodeEntities(s) { | ||
s = ('' + s); | ||
if (s.length > 3 && s.indexOf('&') !== -1) { | ||
@@ -307,7 +305,6 @@ return s.replace(/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/ig, replaceEntities); | ||
* | ||
* @param {string} str | ||
* @param {string} xml | ||
*/ | ||
function parse(str) { | ||
var xml = ('' + str), | ||
nsMatrixStack = isNamespace ? [] : null, | ||
function parse(xml) { | ||
var nsMatrixStack = isNamespace ? [] : null, | ||
nsMatrix = isNamespace ? buildNsMatrix(nsUriToPrefix) : null, | ||
@@ -314,0 +311,0 @@ _nsMatrix, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30600
738