I have string that contains HTML text:
string html = "<html> \r\n\n<body> \n<h1>Hello World</h1> \r \n \n</body> </html>";
I want to clean the text outside the HTML tag. So the string will come out looking like this:
string html = "<html><body><h1>Hello World</h1></html>";
I am also using .NET. Is there any built in functionality to do this?