Author: vlb | Posted on: 5/22/2009 6:30:26 AM | Views : 285

Hi,
 I have a weird problem with innerhtml. Here is my code: private void AddMessageElement(HtmlDocument document, Color forecolor, string text) { HtmlElement message = document.CreateElement("span"); message.SetAttribute("class", "message");
message.InnerHtml = text.Replace(Environment.NewLine, "<br />").Replace("\n", "<br />"); // line * document.Body.AppendChild(message); }  "text" contains properly formatted html fragment (with links, images, text etc). Something like this:
"This is an example of input text with <a href='very very long link - more t ...

Go to the complete details ...