c# - Get innerText value from html node -


i using htmlagilitypack,

however in 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 having difficulty extracting inner text values not nested in own node. can href values, need corresponding text values before them, each link, have text before it.

i have tried using previoussibling.innertext results came null.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -