import DOMPurify from 'dompurify';
/**
 * DOM utility functions
 */
export function insertTrustedHTML(element, html) {
    const sanitizedHTML = DOMPurify.sanitize(html, { RETURN_DOM: true });
    element.replaceChildren(...Array.from(sanitizedHTML.childNodes));
}
//# sourceMappingURL=dom.js.map