src/htmlformat/parse.js
// Parses the HTML into a DOM, and then calls through to `fromDOM`.
Parses the HTML into a DOM, and then calls through to `fromDOM`.
Parses the HTML into a DOM and then calls through to ` fromDOM ` .
function fromHTML(schema, html, options) {
  let wrap = (options && options.document || window.document).createElement("div")
  wrap.innerHTML = html
  return fromDOM(schema, wrap, options)
}
function fromHTML ( schema , html , options ) { let wrap = ( options && options . document || window . document ) . createElement ( "div" ) wrap . innerHTML = html return fromDOM ( schema , wrap , options ) }
Parses the HTML into a DOM, and then calls through to `fromDOM`.
Parses the HTML into a DOM and then calls through to ` fromDOM ` .