Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
mozSanitizingSerializer.cpp File Reference
#include "mozSanitizingSerializer.h"
#include "nsIServiceManager.h"
#include "nsHTMLAtoms.h"
#include "nsIDOMText.h"
#include "nsIDOMElement.h"
#include "nsITextContent.h"
#include "nsTextFragment.h"
#include "nsContentUtils.h"
#include "nsReadableUtils.h"
#include "plstr.h"
#include "nsIProperties.h"
#include "nsUnicharUtils.h"
#include "nsIURI.h"
#include "nsNetUtil.h"
#include "nsEscape.h"

Go to the source code of this file.

Defines

#define TEXT_REMOVED   "<Text removed>"
#define TEXT_BREAKER   "|"

Functions

static PRUnicharescape (const nsString &source)
nsresult NS_NewSanitizingHTMLSerializer (nsIContentSerializer **aSerializer)
 NS_IMPL_ISUPPORTS4 (mozSanitizingHTMLSerializer, nsIContentSerializer, nsIContentSink, nsIHTMLContentSink, mozISanitizingHTMLSerializer) NS_IMETHODIMP mozSanitizingHTMLSerializer

Define Documentation

#define TEXT_BREAKER   "|"

Definition at line 78 of file mozSanitizingSerializer.cpp.

#define TEXT_REMOVED   "<Text removed>"

Definition at line 77 of file mozSanitizingSerializer.cpp.


Function Documentation

static PRUnichar* escape ( const nsString source) [inline, static]

Definition at line 66 of file mozSanitizingSerializer.cpp.

{
  return nsEscapeHTML2(source.get(), source.Length()); 
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 116 of file mozSanitizingSerializer.cpp.

Here is the call graph for this function:

Definition at line 80 of file mozSanitizingSerializer.cpp.

{
  mozSanitizingHTMLSerializer* it = new mozSanitizingHTMLSerializer();
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  NS_ADDREF(it);
  *aSerializer = it;
  return NS_OK;
}

Here is the call graph for this function: