html_to_list: Uses xml2 to parse html text into a list

Description Usage Arguments Value Examples

View source: R/midas_touch.R

Description

Uses xml2 to parse html text into a list

Usage

1

Arguments

x

string of html

Value

html as an R list

Examples

1
2
3
# create some test data
html <- '<div class="example"><h3>test</h3></div>'
html_to_list(html)

Example output

$body
$body$div
$body$div$h3
$body$div$h3[[1]]
[1] "test"


attr(,".class")
[1] "example"

midas documentation built on May 1, 2019, 10:09 p.m.

Related to html_to_list in midas...