@web-atoms/core
Version:
31 lines • 1.1 kB
TypeScript
import XNode from "../../core/XNode";
export declare const encoder: {
EncodeType: any;
isEmpty: (val: any) => boolean;
arr1: string[];
arr2: string[];
HTML2Numerical: (s: any) => any;
NumericalToHTML: (s: any) => any;
numEncode: (s: any) => any;
htmlDecode: (s: any) => any;
htmlEncode: (s: any, dbl: any) => any;
XSSEncode: (s: any, en: any) => any;
hasEncoded: (s: any) => boolean;
stripUnicode: (s: any) => any;
correctEncoding: (s: any) => any;
swapArrayVals: (s: any, arr1: any, arr2: any) => any;
inArray: (item: any, arr: any) => number;
};
export interface IKeyValuePair {
[key: string]: string | IKeyValuePair;
}
export declare function mergeStyles(a: IKeyValuePair): IKeyValuePair;
export declare function convertToText(node: XNode): string;
declare function render(node: XNode, root: HTMLElement): void;
export default class HtmlNode {
static render: typeof render;
static convert(node: XNode): string;
static toElement(node: XNode, sanitize?: boolean): HTMLElement;
}
export {};
//# sourceMappingURL=HtmlNode.d.ts.map