redoc/lib/src/utils/dom.d.ts

9 lines
407 B
TypeScript
Raw Normal View History

2020-08-24 12:18:51 +03:00
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;