fix bug parsing html entities

This commit is contained in:
Grahame Grieve 2023-02-14 17:32:26 +11:00
parent b46160bc8b
commit 33a84012f2
1 changed files with 2 additions and 2 deletions

View File

@ -979,8 +979,8 @@ public class XhtmlParser {
error(I18nConstants.XHTML_XHTML_Entity_Illegal, "&"+c+";");
}
}
if (definedEntities.containsKey(c)) {
s.append(definedEntities.get(c));
if (definedEntities.containsKey("&"+c+";")) {
s.append(definedEntities.get("&"+c+";"));
// what's going on here?
// the contents that follow already existed, and then I added the routine to populate the entities
// which was generated from other code. The code that follows is probably redundant, but I haven't