Using HTML Agility Pack to get the value of a javascript variable

html html-agility-pack javascript variables

Question

Is it possible to get a javascript variable value with html agility pack?

<script type="text/javascript"> 
var title = "Site title";
var articlesummary = "article summary.";
</script>

Is there any way that html agility pack would allow me to get the value of the variable title for example?

1
1
7/15/2010 12:49:52 PM

Accepted Answer

You can't get the value of a javascript variable in HTML Agility Pack. You have to use regex.

1
12/19/2010 3:51:55 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow