redoc/lib/src/utils/dom.d.ts
2020-08-24 09:18:51 +00:00

9 lines
407 B
TypeScript

export declare const IS_BROWSER: boolean;
export declare function querySelector(selector: string): Element | null;
/**
* Drop everything inside <...> (i.e., tags/elements), and keep the text.
* Unlike browser innerText, this removes newlines; it also doesn't handle
* un-encoded `<` or `>` characters very well, so don't feed it malformed HTML
*/
export declare function html2Str(html: string): string;