Socket
Socket
Sign inDemoInstall

striptags

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-alpha.3 to 4.0.0-alpha.4

dist/cjs/striptags.cjs

10

dist/cjs/striptags.js

@@ -50,7 +50,7 @@ 'use strict';

if (this.isNameBufferAnAllowedTag()) {
transition(new InTagState(0 /* Allowed */, this.options));
transition(new InTagState(0 /* TagMode.Allowed */, this.options));
return TAG_START + (this.isClosingTag ? "/" : "") + this.nameBuffer + character;
}
else {
transition(new InTagState(1 /* Disallowed */, this.options));
transition(new InTagState(1 /* TagMode.Disallowed */, this.options));
return this.options.tagReplacementText;

@@ -104,3 +104,3 @@ }

}
if (this.mode == 1 /* Disallowed */) {
if (this.mode == 1 /* TagMode.Disallowed */) {
return "";

@@ -126,3 +126,3 @@ }

}
if (this.mode == 1 /* Disallowed */) {
if (this.mode == 1 /* TagMode.Disallowed */) {
return "";

@@ -185,3 +185,3 @@ }

exports.StateMachine = StateMachine;
exports.default = striptags;
exports["default"] = striptags;
exports.striptags = striptags;

@@ -12,3 +12,3 @@ {

"bugs": "https://github.com/ericnorris/striptags/issues",
"version": "4.0.0-alpha.3",
"version": "4.0.0-alpha.4",
"keywords": [

@@ -22,4 +22,9 @@ "striptags",

"main": "dist/cjs/striptags.js",
"module": "dist/es6/striptags.js",
"types": "dist/es6/striptags.d.ts",
"type": "module",
"exports": {
"import": "./dist/es6/striptags.js",
"require": "./dist/cjs/striptags.cjs",
"types": "./dist/es6/striptags.d.ts"
},
"files": [

@@ -26,0 +31,0 @@ "dist/"

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