| html_strings | R Documentation |
The text nodes of each node's subtree, in tree order, as separate
strings: the pieces html_text() concatenates. Boundaries between
elements are kept, which matters when the markup, not whitespace,
separates values (<td>1</td><td>2</td> is "1", "2", not "12").
Text inside <script>, <style> and <template> is skipped, as are
comments.
html_strings(x, trim = FALSE, drop_empty = FALSE)
x |
A |
trim |
If |
drop_empty |
If |
A list as long as x of character vectors; NA_character_ for
a missing node. A text node is its own single piece.
Other node values:
html_attr(),
html_markdown(),
html_name(),
html_serialize(),
html_text(),
html_text_clean()
doc <- html_parse("<p>One <b>two</b>\n <i> three </i></p>")
p <- html_element(doc, "p")
html_strings(p)
html_strings(p, trim = TRUE, drop_empty = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.