Description Usage Arguments Value Examples
View source: R/children_node.R
Extract all children nodes
1 | all_children(x, res = "do not change", i = 1)
|
x |
one or more documents, nodes, or node sets. |
res |
omit. do not make any change. |
i |
must be 1 |
nodeset
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | txt='<div class="activityBody postBody thing">
<p>
<a href="/forum/conversation" class="mqPostRef">(22)</a>
where?
</p>
<p>
stays
<b>disappears</b>
<a>disappears</a>
<span>disappears</span>
stays
</p>
</div>'
library(xml2)
html=read_html(txt)
all_children(html)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.