changed to preprocessor for code generation for tag & entity tables

cleanup tag and entity lookup apis
This commit is contained in:
peterl@netscape.com
1999-07-18 00:12:32 +00:00
parent ec3ea240c5
commit afeb6760cf
40 changed files with 1710 additions and 646 deletions
+3 -4
View File
@@ -789,10 +789,9 @@ nsHTMLToTXTSinkStream::AddLeaf(const nsIParserNode& aNode)
}
else if (type == eHTMLTag_entity)
{
text = aNode.GetText();
EncodeToBuffer(text);
PRUnichar entity = NS_EntityToUnicode(mBuffer);
nsString temp;
PRUnichar entity = nsHTMLEntities::EntityToUnicode(aNode.GetText());
nsAutoString temp;
temp.Append(entity);
Write(temp);