code: function cleanOptions(options) {
    if (options === undefined) {
      options = {
        selector: 'body'
      };
    } else if (typeof options === 'string') { // keeping compatiblity with version < v0.0.7
      if (options === '/') {
        options = {
          selector: 'body'
        };
      } else {
        options = {
          selector: options
        };
      }
    } else {
      options.selector = options.selector.replace('\\', '');
    }
  
    if (options.removeLinks === undefined) {
      options.removeLinks = false;
    }
  
    if (options.inlineCss === undefined) {
      options.inlineCss = true;
    }
    if (options.innerText === undefined) {
      options.innerText = false;
    }
  
    return options;
  }
docs: /* eslint no-param-reassign: "off"