html_children: Get element children

View source: R/html.R

html_childrenR Documentation

Get element children

Description

Get element children

Usage

html_children(x)

Arguments

x

A document (from read_html()), node set (from html_elements()), node (from html_element()), or session (from session()).

Examples

html <- minimal_html("<ul><li>1<li>2<li>3</ul>")
ul <- html_elements(html, "ul")
html_children(ul)

html <- minimal_html("<p>Hello <b>Hadley</b><i>!</i>")
p <- html_elements(html, "p")
html_children(p)

rvest documentation built on June 22, 2024, 10:47 a.m.