Socket
Socket
Sign inDemoInstall

html-entities

Package Overview
Dependencies
0
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.5 to 2.0.6

3

lib/index.js

@@ -70,2 +70,3 @@ "use strict";

var fromCharCode = String.fromCharCode;
var outOfBoundsChar = fromCharCode(65533);
function decode(text, _a) {

@@ -88,3 +89,3 @@ var _b = _a === void 0 ? defaultDecodeOptions : _a, _c = _b.level, level = _c === void 0 ? 'all' : _c, _d = _b.scope, scope = _d === void 0 ? level === 'xml' ? 'strict' : 'body' : _d;

return code >= 0x10ffff
? entity
? outOfBoundsChar
: code > 65535

@@ -91,0 +92,0 @@ ? surrogate_pairs_1.fromCodePoint(code)

{
"name": "html-entities",
"version": "2.0.5",
"version": "2.0.6",
"description": "Fastest HTML entities encode/decode library.",

@@ -29,3 +29,3 @@ "keywords": [

"chai": "^4.2.0",
"entities": "^2.1.0",
"entities": "^2.2.0",
"eslint": "^7.12.1",

@@ -32,0 +32,0 @@ "eslint-config-prettier": "^6.15.0",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc