I would like to replace a specific node with string.
It successfully replace the node but instead of "<div>"
, it appear "<div>"
What should I do to make it into "<div>"
?
I have tried XElement.Parse but it will give me error as I replace node with "</div><div>"
foreach (var node in Nodes)
{
var newElement = XElement.Parse("</div><div>");
node.ReplaceWith(sbb.ToString);
}