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

es-escape-html

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-escape-html - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "es-escape-html",
"description": "es-escape-html rewrite for ESM",
"version": "0.1.0",
"version": "0.1.1",
"type": "module",

@@ -6,0 +6,0 @@ "types": "./src/index.d.ts",

@@ -15,7 +15,7 @@ const matchHtmlRegExp = /["'&<>]/;

*
* @param {string} string The string to escape for inserting into HTML
* @param {string} str The string to escape for inserting into HTML
* @return {string}
* @public
*/
export function escapeHTML(string) {
export function escapeHTML(str) {
const match = matchHtmlRegExp.exec(str);

@@ -22,0 +22,0 @@

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