任何不修改DOM的DOM解析器?

I need to write a page, can use PHP or .NET, that will display the unmodified html for an element of another page.

The other page may not have valid HTML, but we want it to be returned unmodified. We will not be selecting based on the invalid elements, but will select their parent element and need them returned unmodified.

An example HTML page that my page will be fetching:

<body>
<div>
<p>test1</p>
<br>
<p>test2
<p>test3</p>
</div>
</body>

So far everything I have tried attempts to fix the HTML, it makes the br in the example self closing and the second paragraph tags gets closed.

Is there anything out there that can do this?

Thanks!