HTML

Get the rendered HTML markup of the target URL

html.js
const mql = require('@microlink/mql')

const html = async (url, opts) => {
  const { data } = await mql(url, {
    meta: false,
    data: {
      html: {
        selector: 'html'
      }
    },
    ...opts
  })

  return data.html
}

const result = await html('https://example.com')

mql.render(result)