escape-html/ 000755 001751 000177 0000000000 14522265601 014744 5 ustar 00runner 000000 000000 14522265601 14522265601 escape-html/LICENSE 000644 001751 000177 0000002165 14522265601 015755 0 ustar 00runner 000000 000000 14522265601 14522265601 MIT License
Copyright (c) Microsoft Corporation.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
escape-html/README.md 000644 001751 000177 0000003020 14522265601 016223 0 ustar 00runner 000000 000000 14522317437 14522265601 # Installation
> `npm install --save @types/escape-html`
# Summary
This package contains type definitions for escape-html (https://github.com/component/escape-html).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escape-html.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/escape-html/index.d.ts)
````ts
/**
* 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
* `