C# HTMLAgilityPack get content <script>

c# html-agility-pack

Question

I want to get the contents of this script

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

How to do it using HTMLAgilityPack?

Popular Answer

Did you try?

doc.DocumentNode.Descendants("script")




Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Is this KB legal? Yes, learn why