"); } return html + script; } function buildSrcdoc(rawHtml, baseHref) { let html = rawHtml; html = ensureBaseTag(html, baseHref); html = ensureResizeScript(html); const hasHtml = /]/i.test(html) || / "; return "" + head + "