I am currently using the HtmlAgilityPack,
However in the following HTML-
<div class="First"> Inner Text <strong><a href="url"> Text </a></strong>
<br>
Inner Text <strong><a href="url"> Text </a></strong>
<br>
<span class="Second"> Inner Text <strong><a href="url"> Text </a></strong></span>
<br>
Inner Text <strong><a href="url"> Text </a></strong>
I am having difficulty extracting the Inner Text
values as they are not nested in their own node.
I can get the href
values, however need the corresponding text values before them, so for each link, I have the text before it.
I have tried using Previoussibling.innerText
however results came back null.