| html_text | R Documentation |
html_text() is the structural text of each node: the text nodes in its
subtree, concatenated in tree order, exactly as parsed. It inserts no
separators, trims nothing and keeps <script> and <style> text; it
does not include comments or the contents of <template> elements.
html_text(x, recursive = TRUE)
x |
A |
recursive |
If |
A character vector as long as x. An element with no text is
""; a text, comment or processing-instruction node is its own
content; a doctype and a missing node are NA.
Other node values:
html_attr(),
html_markdown(),
html_name(),
html_serialize(),
html_strings(),
html_text_clean()
doc <- html_parse("<p>Hello <b>big</b> world</p>")
p <- html_children(html_children(html_root(doc))[2])
html_text(p)
html_text(p, recursive = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.