Parsing HTML to get script variable value
Very simple example of how this could be easy using a HTMLAgilityPack and Jurassic library to evaluate the result: var html = @”<html> // Some HTML <script> var spect = [[‘temper’, ‘init’, []], [‘fw\/lib’, ‘init’, [{staticRoot: ‘//site.com/js/’}]], [“”cap””,””dm””,[{“”tackmod””:””profile””,””xMod””:””timed””}]]]; </script> // More HTML </html>”; // Grab the content of the first script element HtmlAgilityPack.HtmlDocument doc = … Read more