The method html_text()
(from R Package rvest) concatenates the text of the node and all its children. I would like to extract only the father's text.
Forthe following example, html_text()
gives HELLO GOODBYE.
I want to get just GOODBYE. How can I get it?
<div class="joke">
<div class="div_inside">
<div class="title_inside">
<a class="link" href="sompage.htm">HELLO</a>
</div>
</div>
GOODBYE
</div>