This project has moved and is read-only. For the latest updates, please go here.

Probably a bug. InnerText

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


 I have the following HTML:

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

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!