Probably a bug. InnerText

Topics: Developer Forum
Jul 23, 2010 at 2:18 PM

Hello,

 I have the following HTML:

<html>
<body>
1<2 test <img src="images/test.jpg"> sample a<b e test b>c
</body>
</html>

If I open it with any browser, I can read some text. That's ok. If instead I get the .InnerText using HtmlAgilityPack, it returns a different text than the browser. Basically, it seems it fails to understand the tags.

Is this a bug? I need that .InnerText returns the same text as displayed in the browser.

Thank you!

Paul