Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

escape-goat

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

escape-goat - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -20,5 +20,5 @@ 'use strict';

exports.escape = input =>
input.replace(/[&<>"']/g, m => escapes.has(m) ? escapes.get(m) : m);
input.replace(/[&<>"']/g, m => escapes.get(m) || m);
exports.unescape = input =>
input.replace(/&(?:amp|lt|gt|quot|#39);/g, m => unescapes.has(m) ? unescapes.get(m) : m);
input.replace(/&(?:amp|lt|gt|quot|#39);/g, m => unescapes.get(m) || m);
{
"name": "escape-goat",
"version": "1.0.0",
"version": "1.0.1",
"description": "Escape a string for use in HTML or the inverse",

@@ -5,0 +5,0 @@ "license": "MIT",

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