jabber.protocol.client.Message.NormalizeHtml C# (CSharp) Method

NormalizeHtml() private method

private NormalizeHtml ( XmlElement body, string html ) : void
body System.Xml.XmlElement
html string
return void
        private void NormalizeHtml(XmlElement body, string html)
        {
            XmlDocument d = new XmlDocument();
            d.LoadXml("<html xmlns='" + URI.XHTML + "'>" + html + "</html>");
            foreach (XmlNode node in d.DocumentElement.ChildNodes)
            {
                body.AppendChild(this.OwnerDocument.ImportNode(node, true));
            }
        }