I’m sending a nsIXMLHttpRequest to a service that can return HTML content. I can display the raw HTML inside a multiline textbox, but I’d like to be able to display the rendered HTML in my addon (preferably inside a xul tabpanel).
Is there a control I could use to do this? The only things that seem to render HTML take their input from a URL, where I need it to come from a javascript variable somehow.
*Edit: Found the answer minutes after posting, sorry *
Means I can load it into an iframe where firefox will render it. Straight from Mozilla Developer Center.