Convert HTML to Text

html_to_text(x, include_attributes = FALSE)

Arguments

x

HTML content (length 1 character vector)

include_attributes

Sets whether any attribute values are included in the output

Value

character vector of cleaned text

Examples

# NOT RUN {
fils <- list.files(system.file("extdata", package="jericho"), full.names=TRUE)
for (f in fils) {
  d <- readBin(f, "raw", file.size(f))
  d <- rawToChar(d)
  html_to_text(d)
}
# }