Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

examining strings as html

$
0
0

When I do simple things in a unit test I would like my simple things to look like something useful. There has been some issues with examining strings as "HTML" in the debugging windows for visual studio. I am wondering when I use the "HTML VISUALIZER" if there is a way to view the page in an actual "browser".

I ask because I write some test code that does not use the browser.

How can I simulate a browser when I hover over variable and select "HTML Visualizer"?

Here is an example

var rendered = "<html><head><script type='text/javascript'>alert('hi');</script></head><body>stuffed</body></html>"

when I inspect the variable rendered, I can look at it in a few ways ["Text","Html","Json","xml"]. the HTML version is pretty weak imo

Thanks in advance.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>