code: public static Document parse(String html, String baseUri, Parser parser) {
          return parser.parseInput(html, baseUri);
      }
docs: Parse HTML into a Document, using the provided Parser. You can provide an alternate parser, such as a simple XML
  (non-HTML) parser.
  
  @param html    HTML to parse
  @param baseUri The URL where the HTML was retrieved from. Used to resolve relative URLs to absolute URLs, that occur
  before the HTML declares a {@code <base href>} tag.
  @param parser alternate {@link Parser#xmlParser() parser} to use.
  @return sane HTML