dom-serializer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -20,5 +20,2 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -29,3 +26,3 @@ /* | ||
var ElementType = __importStar(require("domelementtype")); | ||
var entities_1 = __importDefault(require("entities")); | ||
var entities = __importStar(require("entities")); | ||
/* mixed-case SVG and MathML tags & attributes | ||
@@ -66,3 +63,3 @@ recognized by the HTML parser, see | ||
return key + "=\"" + (opts.decodeEntities | ||
? entities_1.default.encodeXML(value) | ||
? entities.encodeXML(value) | ||
: value.replace(/"/g, """)) + "\""; | ||
@@ -191,3 +188,3 @@ }) | ||
!(elem.parent && unencodedElements.has(elem.parent.name))) { | ||
data = entities_1.default.encodeXML(data); | ||
data = entities.encodeXML(data); | ||
} | ||
@@ -194,0 +191,0 @@ return data; |
{ | ||
"name": "dom-serializer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "render dom nodes to string", | ||
@@ -5,0 +5,0 @@ "author": "Felix Boehm <me@feedic.com>", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
22424
499