> > Using the encodeURIComponent to write to a tab causes Fx to eventually hang
> > and crash. Is there a way to prevent this?
> >
> > gBrowser.addTab("data:text/html;charset=utf-8,"+
> > encodeURIComponent(string));

>
> Try this approach instead:
>
> http://developer.mozilla.org/en/docs...t_of_a_new_tab


p.s. if your previous code crashes Firefox 3, please provide an example with the value of |string| so we can file a bug.

Thanks,
Eric