source: trip-planner-front/node_modules/entities/lib/encode.d.ts

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

initial commit

  • Property mode set to 100644
File size: 1.7 KB
Line 
1/**
2 * Encodes all non-ASCII characters, as well as characters not valid in XML
3 * documents using XML entities.
4 *
5 * If a character has no equivalent entity, a
6 * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
7 */
8export declare const encodeXML: (data: string) => string;
9/**
10 * Encodes all entities and non-ASCII characters in the input.
11 *
12 * This includes characters that are valid ASCII characters in HTML documents.
13 * For example `#` will be encoded as `&num;`. To get a more compact output,
14 * consider using the `encodeNonAsciiHTML` function.
15 *
16 * If a character has no equivalent entity, a
17 * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
18 */
19export declare const encodeHTML: (data: string) => string;
20/**
21 * Encodes all non-ASCII characters, as well as characters not valid in HTML
22 * documents using HTML entities.
23 *
24 * If a character has no equivalent entity, a
25 * numeric hexadecimal reference (eg. `&#xfc;`) will be used.
26 */
27export declare const encodeNonAsciiHTML: (data: string) => string;
28/**
29 * Encodes all non-ASCII characters, as well as characters not valid in XML
30 * documents using numeric hexadecimal reference (eg. `&#xfc;`).
31 *
32 * Have a look at `escapeUTF8` if you want a more concise output at the expense
33 * of reduced transportability.
34 *
35 * @param data String to escape.
36 */
37export declare function escape(data: string): string;
38/**
39 * Encodes all characters not valid in XML documents using numeric hexadecimal
40 * reference (eg. `&#xfc;`).
41 *
42 * Note that the output will be character-set dependent.
43 *
44 * @param data String to escape.
45 */
46export declare function escapeUTF8(data: string): string;
47//# sourceMappingURL=encode.d.ts.map
Note: See TracBrowser for help on using the repository browser.