jabber.protocol.client.Message.NormalizeHtml C# (CSharp) 메소드

NormalizeHtml() 개인적인 메소드

private NormalizeHtml ( XmlElement body, string html ) : void
body System.Xml.XmlElement
html string
리턴 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));
            }
        }