Socket
Socket
Sign inDemoInstall

escape-html

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.1 to 1.0.0

4

component.json
{
"name": "escape-html",
"description": "Escape HTML entities",
"version": "0.0.1",
"version": "1.0.0",
"keywords": ["escape", "html", "utility"],

@@ -10,2 +10,2 @@ "dependencies": {},

]
}
}

@@ -1,2 +0,1 @@

/**

@@ -14,4 +13,5 @@ * Escape special characters in the given string of html.

.replace(/"/g, '"')
.replace(/'/g, ''')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;');
}
}
{
"name": "escape-html",
"description": "Escape HTML entities",
"version": "0.0.1",
"version": "1.0.0",
"keywords": ["escape", "html", "utility"],
"dependencies": {},
"main": "index.js"
}
"main": "index.js",
"component": {
"scripts": {
"escape-html/index.js": "index.js"
}
}
}
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