Learn R Programming

rdomains (version 0.5.0)

html_text_content: Extract text, title, description and language from HTML

Description

Extract text, title, description and language from HTML

Usage

html_text_content(html)

Value

A list with `text` (cleaned, lowercased), `title`, `description` and `lang`. Missing elements are `NA_character_`; `text` is `""` when nothing could be extracted.

Arguments

html

Raw HTML as a single string.

See Also

[page_signals()], which uses this to decide whether a page is classifiable.

Examples

Run this code
html <- "Example
  
  
  Hello   World"
html_text_content(html)

Run the code above in your browser using DataLab