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

HtmlNode.CreateNode(str) doesn't create node from whole text, only to first <br>

description

I have following string, and I want to create HtmlNode from it:

str="Hello colleagues,<BR><BR>Can you pls
do something, something...<BR>"

When I call
var node=HtmlNode.CreateNode(str);

node have InnerHtml property set to: "Hello colleagues,", completely disregarding anything behind line break.

Wouldn't expected behaviour be that node contains all text including line breaks?

comments