/** * Convert HTML into DOM node(s) * * @param html - HTML string to transform into nodes * @return DOM elements that the HTML represented * * @remarks * * To keep the method simple and short, this method uses the `` * element to convert the HTML. For older browsers, either * use a polyfill like `@webcomponents/template` or a more elaborate HTML parser * (like `parsehtml` or `html-parser`) * * @example * * ```ts * // HTML is returned as is, as it cannot be parsed easily * toDOM('
'); * * // Convert a given HTML string to HTML * toDOM('') * // -> * ``` */ export default function toDOM(html: string): string | HTMLCollection;