Is there a simple way to preserve html formatting when passing a value using the DOM?
optionContent = thisXDocument.DOM.getElementsByTagName("option4")[0].text
Whenever I use the statement above, any font formatting, such as bolding, italisizing, and underlining, is stripped away and lost.
The formatting is there however in the XML, which I can see in the InnerXml property in the following statement:
XmlDocument xmlDocument = new XmlDocument();
xmlDocument.LoadXml(thisXDocument.DOM.xml);
string optionHTMLText = xmlDocument.FirstChild.NextSibling.NextSibling.NextSibling.InnerXml;
Can anyone explain the reason for this and provide a remedy?
Thanks,
~PGA