When prettyprinting is on, we will attempt to make the plaintext
mimic the look of the html; when off (as for copy/paste), we just
dump the text with no formatting information.
In the case of the stream, the document is encoded using the document defined charset
or the user may override the charset.
Added constructors for creating a sink using a nsIOutputStream or an nsString.
Removed all HTML and TEXT encoding which relied on references to ostream. Using John McMullen's
platform independent streaming code in its place. :)
document to HTML to Text. The charset information is first encoded
in XIF and then that information is used when interpretting the unicode
for output.
Added support to output character entity information which should address
bug 4709