user3857806
user3857806

Reputation: 53

C# HTMLAgilityPack get content <script>

I want to get the contents of this script

<script language="javascript">
    //some content
</script>

How to do it using HTMLAgilityPack?

Upvotes: 3

Views: 4570

Answers (1)

Haja Maideen
Haja Maideen

Reputation: 468

Did you try?

doc.DocumentNode.Descendants("script")

Upvotes: 5

Related Questions