Socket
Socket
Sign inDemoInstall

dom-serializer

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-serializer - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

9

lib/index.js

@@ -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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc