// Type definitions for escape-html 1.0 // Project: https://github.com/component/escape-html // Definitions by: Elisée MAURER // Piotr Błażejewicz // 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 * `