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

php - Admin SDK -- get information about the group -

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

Python Error - TypeError: input expected at most 1 arguments, got 3 -