mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
27 lines
1.3 KiB
TypeScript
27 lines
1.3 KiB
TypeScript
/**
|
|
* 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
|