@types/escape-html
Advanced tools
Comparing version 0.0.20 to 1.0.0
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
3803
22
1
0