If the page is a full page, I assume you want to just extract the body content. Probably the simplest way to do this would be to just parse the content out between the
<body> </body>
tags.
[Edit]
The OP wanted information on how to accomplish this. Well, one way would be to use XML to select the body node from the HTML (assuming it's in a well formed XML document), and select the
InnerText
. You could then write this content out into a literal control.
This could be read in like:
XmlDocument document = new XmlDocument();
document.Load(...);
var node = document.DocumentElement.SelectSingleNode("/html/body");
string text = node.InnerText;
litContent.Text = text;
[/Edit]