gEditor->OutputHTMLToString(outString, PR_FALSE);
formatString = "text/html"; gEditor->OutputToString(outString, formatString, flags);
static nsresult PrintEditorOutput(nsIHTMLEditor* editor, PRInt32 aCommandID){	nsString		outString;	char*				cString;		switch (aCommandID)	{      case VIEWER_DISPLAYTEXT:        gEditor->OutputTextToString(outString, PR_FALSE);        break;              case VIEWER_DISPLAYHTML:        gEditor->OutputHTMLToString(outString, PR_FALSE);        break;	}	cString = outString.ToNewCString();	printf(cString);	delete [] cString;		return NS_OK;}