I have an XUL window which uses an <editor> to embed an HTML editor. I
then use editorShell.GetContentsAs('text/html', 0) to retrieve the
contents of the window.

What I need is a way of making sure that what I receive is
well-formed, in the XML sense, for example, I get <br/> instead of
<br>, and so on. Can I do anything to the editor to ensure that this
is the case? Or would I have to do walk the DOM tree myself?

Any tips appreciated.


Matthew Wilson

Reply via email to