HtmlContainerControl.InnerText is supposed to decode HTML to text. For example, it will be "<b> Hello </b>" if the HTML code is "< b > Hello < /b >." as described in MSDN. However I have noticed it does not change </br> to a NewLine string. In other words, one would get "<b> Hello</br>Foo</b>" from "< b > Hello</br>Foo< /b >.", not"<b> HelloFoo</b>" Is this what supposed to be?I am asking this is because when I select and copy the text inside a <div> in a browser and paste it to a text editor such as Notepad, it would look exactly as it is shown in a browser -</br> becomes newline. I thought I would get this with HtmlContainerControl.InnerText.
View Complete Post