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

@types/escape-html

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/escape-html - npm Package Compare versions

Comparing version 0.0.20 to 1.0.0

19

escape-html/index.d.ts

@@ -1,10 +0,25 @@

// Type definitions for escape-html
// Type definitions for escape-html 1.0
// Project: https://github.com/component/escape-html
// Definitions by: Elisée MAURER <https://github.com/elisee>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Escape string for use in HTML
*/
/**
* Escape special characters in the given string of text, such that it can be interpolated in HTML content.
* This function will escape the following characters: `"`, `'`, `&`, `<`, and `>`.
*
* *Note* that the escaped value is only suitable for being interpolated into HTML as the text content of
* elements in which the tag does not have different escaping mechanisms (it cannot be placed inside
* `<style>` or `<script>`, for example, as those content bodies are not HTML, but CSS and JavaScript,
* respectively; these are known as "raw text elements" in the HTML standard).
*
* *Note* when using the escaped value within a tag, it is only suitable as the value of an attribute,
* where the value is quoted with either a double quote character (`"`) or a single quote character (`'`).
*/
declare function escapeHTML(text: string): string;
declare namespace escapeHTML { }
export = escapeHTML;

18

escape-html/package.json
{
"name": "@types/escape-html",
"version": "0.0.20",
"version": "1.0.0",
"description": "TypeScript definitions for escape-html",

@@ -9,14 +9,22 @@ "license": "MIT",

"name": "Elisée MAURER",
"url": "https://github.com/elisee"
"url": "https://github.com/elisee",
"githubUsername": "elisee"
},
{
"name": "Piotr Błażejewicz",
"url": "https://github.com/peterblazejewicz",
"githubUsername": "peterblazejewicz"
}
],
"main": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/escape-html"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "aba0dedf471036338db625914f33e3e35d7e1128fcc09c348dec895cb48158cd",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "f158025e9cf23c79417dee74255bdf67ecbbb1333f6ae0bffc97798f7865048e",
"typeScriptVersion": "2.9"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escape-html
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escape-html.
Additional Details
* Last updated: Mon, 21 Aug 2017 21:49:18 GMT
### Additional Details
* Last updated: Wed, 13 May 2020 16:10:29 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Elisée MAURER <https://github.com/elisee>.
These definitions were written by [Elisée MAURER](https://github.com/elisee), and [Piotr Błażejewicz](https://github.com/peterblazejewicz).

Sorry, the diff of this file is not supported yet

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