forked from adnaan1703/lean-he
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathleanHe.d.ts
More file actions
24 lines (22 loc) · 679 Bytes
/
leanHe.d.ts
File metadata and controls
24 lines (22 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
interface EncodeOptions {
/** default `false` */
decimal?: boolean;
/** default `false` */
useNamedReferences?: boolean;
/** default `false` */
encodeEverything?: boolean;
/** default `false` */
strict?: boolean;
/** default `false` */
allowUnsafeSymbols?: boolean;
}
interface DecodeOptions {
/** default `false` */
isAttributeValue?: boolean;
/** default `false` */
strict?: boolean;
}
export function escape(text: string): string;
export function encode(text: string, options?: EncodeOptions): string;
export function decode(html: string, options?: DecodeOptions): string;
export function unescape(html: string, options?: DecodeOptions): string;