I have Xml witch a convert to plain text and then display with html formatting in a web browser.
At the end of each line the symbol ¶ appears i would like to remove the symbol or replace it with a .
Does anyone know how i could do this?
This is how i convert XML to plain text:
XmlDocument doc = new XmlDocument();
doc.LoadXml(this.dataGridViewResult.SelectedRows[0].Cells["XMLEvent"].Value.ToString());
StringBuilder sb = new StringBuilder();
foreach (XmlNode node in doc.DocumentElement.ChildNodes)
{
sb.Append(char.ToUpper(node.Name[0]));
sb.Append(node.Name.Substring(1));
sb.Append(' ');
sb.AppendLine(node.InnerText);
}
var finalText = sb.ToString().Replace("¶",".");sblike above