Subject: [SOLVED] msg.Html
Alex,
Since you said, in previous posts, that you use WebBrowser controls for HTML input for users, how were you able to get around the noncompliant XHTML?
DO you use AgilityPack, or Tidy? or SGML? To parse the HTMl to XHTML? SO that it can be added properly to the msg.HTML child element?
The reason i ask, is because, right now, the HTML we pass to the server is actually done in encoded code (not even readable), until it is reparsed and recombined on the receiving end (client). The reason we had to do this is because, at the time, users were creating tons of different HTML elements, etc, but now it's all more standard, and we'd like to actually use the XHTML handling for XMPP. So that we do not actually have to recode the HTML ourselves.
However, the HTML that the webbrowser control generates isn't valid XHTML (webBrowser1.Document.Body.InnerHtml, for example, doesn't output proper XHTML, colors etc, do not output with quotes, just raw hex (color=#332211) instead of (color="#332211")).
So how did you get around this issue?
--Phillip
Since you said, in previous posts, that you use WebBrowser controls for HTML input for users, how were you able to get around the noncompliant XHTML?
DO you use AgilityPack, or Tidy? or SGML? To parse the HTMl to XHTML? SO that it can be added properly to the msg.HTML child element?
The reason i ask, is because, right now, the HTML we pass to the server is actually done in encoded code (not even readable), until it is reparsed and recombined on the receiving end (client). The reason we had to do this is because, at the time, users were creating tons of different HTML elements, etc, but now it's all more standard, and we'd like to actually use the XHTML handling for XMPP. So that we do not actually have to recode the HTML ourselves.
However, the HTML that the webbrowser control generates isn't valid XHTML (webBrowser1.Document.Body.InnerHtml, for example, doesn't output proper XHTML, colors etc, do not output with quotes, just raw hex (color=#332211) instead of (color="#332211")).
So how did you get around this issue?
--Phillip
zackrspv
Show profile
Link to this post
