How to use the domutils.getInnerHTML function in domutils

To help you get started, we’ve selected a few domutils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ctx-core / ctx-core / packages / fontawesome / bin / refresh-font-awesome.js View on Github external
const handler = new DomHandler((error, dom) => {
				if (error) {
					throw error
				} else {
					const { attribs } = dom[0]
					const { viewbox } = attribs
					const [width, height] = viewbox.split(/ +/g).slice(2)
					assign(attribs, { width, height })
					html = `
${getInnerHTML(dom[0])}
					`.trim()
				}
			})
			const parser = new Parser(handler)
github ctx-core / ctx-core / packages / svg / svelte.ts View on Github external
key=>`${key}=${JSON.stringify(attribs[key])}`).join(' ')
			code = `



<svg>${getInnerHTML(dom0)}</svg>
				`.trim()
		})
		const parser = new Parser(handler)
github superfly / fly / packages / v8env / src / document.ts View on Github external
get innerHTML() {
    return getInnerHTML(this._dom)
  }
  get outerHTML() {