Is there a way to pass in html to a .net function and have the result be the rendered output including JS changes? For example, can you do the following:
string html = Class.Method("<script>$('#test').show()</script><html><body><div id="test" hidden></div></body></html>")
I used jquery for the example, but it can be traditional JS. Basically, the html variable would return the html I passed in, but the div 'test' will not be hidden anymore:
<html><body><div id="test"></div></body></html>
I've been researching JS engines in .net but I can't seem to find anything like this..