[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 | */
|
---|
| 8 | export 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 | */
|
---|
| 16 | export 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 | */
|
---|
| 24 | export declare function encode(data: string, level?: number): string;
|
---|
| 25 | export { encodeXML, encodeHTML, encodeNonAsciiHTML, escape, escapeUTF8, encodeHTML as encodeHTML4, encodeHTML as encodeHTML5, } from "./encode";
|
---|
| 26 | export { 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 |
---|