function ignoreExtraSpaces(string) {
  return string.replace(/(\s+)/g, '\\s+')
    .replace(/(<\\\/)/g, '<\/\\s*')
    .replace(/(<)/g, '<\\s*')
    .replace(/(>)/g, '\\s*>');
}
function ignoreExtraSpaces(string) {
  return string.replace(/(\s+)/g, '\\s+')
    .replace(/(<\\\/)/g, '<\/\\s*')
    .replace(/(<)/g, '<\\s*')
    .replace(/(>)/g, '\\s*>');
}
function ignoreExtraSpaces ( string ) { return string . replace ( / (\s+) / g , '\\s+' ) . replace ( / (<\\\/) / g , '<\/\\s*' ) . replace ( / (<) / g , '<\\s*' ) . replace ( / (>) / g , '\\s*>' ) ; }
reconcile output of htmlparser2's `toString()` with the original document
reconcile output of htmlparser2 s toString () with the original document