html_to_text: Convert HTML to Text

Description Usage Arguments Value Examples

View source: R/html-to-text.r

Description

Convert HTML to Text

Usage

1
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

1
2
3
4
5
6
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)
}

hrbrmstr/jericho documentation built on May 14, 2019, 9:35 a.m.