The task is simple, but I couldn't find the answer.
Removing tags (nodes) is easy with Node.Remove()... But how to replace them?
There's a ReplaceChild() method, but it requires to create a new tag. How do I set the contents of a tag? InnerHtml and OuterHtml are read only properties.
Are you sure InnerHtml is a read only property?
The HTMLAgility pack's documentation says otherwise: (Cut & Paste)
If it is read only could you post some code?
See this code snippet: