char *rv = (char *) nsAllocator::Alloc(nsCRT::strlen(string)*5 + 1);
char *rv = (char *) nsAllocator::Alloc(nsCRT::strlen(string)*6 + 1);
nsEscapeHTML(const char * string){  char *rv = (char *) nsAllocator::Alloc(nsCRT::strlen(string)*5 + 1); /* The +1 is for the trailing null! */	char *ptr = rv;	if(rv)	  {		for(; *string != '\0'; string++)		  {			if(*string == '<')			  {				*ptr++ = '&';				*ptr++ = 'l';				*ptr++ = 't';				*ptr++ = ';';			  }			else if(*string == '>')			  {				*ptr++ = '&';				*ptr++ = 'g';				*ptr++ = 't';				*ptr++ = ';';			  }			else if(*string == '&')			  {				*ptr++ = '&';				*ptr++ = 'a';				*ptr++ = 'm';				*ptr++ = 'p';				*ptr++ = ';';			  }			else			  {				*ptr++ = *string;			  }		  }		*ptr = '\0';	  }	return(rv);}