How to Get the content of html tag in c# -


i want content in "p" tag html document

<div id=123>   <div class="abc">         <div class="xyz">          <p>              contents          </p> 

i use

dynamic document = webcontrol1.executejavascriptwithresult("document"); var p = document.getelementsbytagname("p"); 

but doesn't work

try following:

var p = document.getelementsbytagname("p")[0].innerhtml;


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -