mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 23:42:32 +01:00
fd22b0bf58
V2 (Laravel re-make)
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
|