function parse(markup, mime, forceXMLDom) {
  var doc;
  var Parser;

  if (typeof DOMParser === "undefined" || forceXMLDom) {
    Parser = xmldom__WEBPACK_IMPORTED_MODULE_3__["DOMParser"];
  } else {
    Parser = DOMParser;
  } // Remove byte order mark before parsing
  // https://www.w3.org/International/questions/qa-byte-order-mark


  if (markup.charCodeAt(0) === 0xFEFF) {
    markup = markup.slice(1);
  }

  doc = new Parser().parseFromString(markup, mime);
  return doc;
}
Parse xml (or html) markup
@param {string} markup
@param {string} mime
@param {boolean} forceXMLDom force using xmlDom to parse instead of native parser
@returns {document} document
@memberof Core