Parse HTML text or file into an HTMLDocument or HTMLElement

parse_html_doc(
  x,
  encoding = "",
  ...,
  as_html = FALSE,
  options = c("RECOVER", "NOERROR", "NOBLANKS")
)

parse_html_elem(
  x,
  encoding = "",
  ...,
  as_html = FALSE,
  options = c("RECOVER", "NOERROR", "NOBLANKS")
)

Arguments

x, encoding, ..., as_html, options

options passed to xml2::read_xml()

Value

XMLDocument or XMLElement