source: trip-planner-front/node_modules/entities/lib/index.d.ts@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.3 KB
RevLine 
[6a3a178]1/**
2 * Decodes a string with entities.
3 *
4 * @param data String to decode.
5 * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
6 * @deprecated Use `decodeXML` or `decodeHTML` directly.
7 */
8export declare function decode(data: string, level?: number): string;
9/**
10 * Decodes a string with entities. Does not allow missing trailing semicolons for entities.
11 *
12 * @param data String to decode.
13 * @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
14 * @deprecated Use `decodeHTMLStrict` or `decodeXML` directly.
15 */
16export declare function decodeStrict(data: string, level?: number): string;
17/**
18 * Encodes a string with entities.
19 *
20 * @param data String to encode.
21 * @param level Optional level to encode at. 0 = XML, 1 = HTML. Default is 0.
22 * @deprecated Use `encodeHTML`, `encodeXML` or `encodeNonAsciiHTML` directly.
23 */
24export declare function encode(data: string, level?: number): string;
25export { encodeXML, encodeHTML, encodeNonAsciiHTML, escape, escapeUTF8, encodeHTML as encodeHTML4, encodeHTML as encodeHTML5, } from "./encode";
26export { decodeXML, decodeHTML, decodeHTMLStrict, decodeHTML as decodeHTML4, decodeHTML as decodeHTML5, decodeHTMLStrict as decodeHTML4Strict, decodeHTMLStrict as decodeHTML5Strict, decodeXML as decodeXMLStrict, } from "./decode";
27//# sourceMappingURL=index.d.ts.map
Note: See TracBrowser for help on using the repository browser.