# Installation > `npm install --save @types/htmlescape` # Summary This package contains type definitions for htmlescape (https://github.com/zertosh/htmlescape). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlescape. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/htmlescape/index.d.ts) ````ts declare function htmlescape(o: any): string; declare namespace htmlescape { function sanitize(s: string): string; } export = htmlescape; export as namespace htmlescape; ```` ### Additional Details * Last updated: Tue, 07 Nov 2023 03:09:37 GMT * Dependencies: none # Credits These definitions were written by [bouzuya](http://bouzuya.net).