You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.3 KiB
27 lines
1.3 KiB
2 years ago
|
/**
|
||
|
* Decodes a string with entities.
|
||
|
*
|
||
|
* @param data String to decode.
|
||
|
* @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
|
||
|
* @deprecated Use `decodeXML` or `decodeHTML` directly.
|
||
|
*/
|
||
|
export declare function decode(data: string, level?: number): string;
|
||
|
/**
|
||
|
* Decodes a string with entities. Does not allow missing trailing semicolons for entities.
|
||
|
*
|
||
|
* @param data String to decode.
|
||
|
* @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
|
||
|
* @deprecated Use `decodeHTMLStrict` or `decodeXML` directly.
|
||
|
*/
|
||
|
export declare function decodeStrict(data: string, level?: number): string;
|
||
|
/**
|
||
|
* Encodes a string with entities.
|
||
|
*
|
||
|
* @param data String to encode.
|
||
|
* @param level Optional level to encode at. 0 = XML, 1 = HTML. Default is 0.
|
||
|
* @deprecated Use `encodeHTML`, `encodeXML` or `encodeNonAsciiHTML` directly.
|
||
|
*/
|
||
|
export declare function encode(data: string, level?: number): string;
|
||
|
export { encodeXML, encodeHTML, encodeNonAsciiHTML, escape, escapeUTF8, encodeHTML as encodeHTML4, encodeHTML as encodeHTML5, } from "./encode";
|
||
|
export { decodeXML, decodeHTML, decodeHTMLStrict, decodeHTML as decodeHTML4, decodeHTML as decodeHTML5, decodeHTMLStrict as decodeHTML4Strict, decodeHTMLStrict as decodeHTML5Strict, decodeXML as decodeXMLStrict, } from "./decode";
|
||
|
//# sourceMappingURL=index.d.ts.map
|