Skip to content

Commit

Permalink
Fixes entity parsing when used in strict mode (#699)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhulford authored Dec 14, 2024
1 parent 4082902 commit 74e2651
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/xmlparser/DocTypeReader.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function readDocType(xmlData, i){
if (xmlData[i] === '<' && !comment) { //Determine the tag type
if( hasBody && isEntity(xmlData, i)){
i += 7;
let entityName, val;
[entityName, val,i] = readEntityExp(xmlData,i+1);
if(val.indexOf("&") === -1) //Parameter entities are not supported
entities[ validateEntityName(entityName) ] = {
Expand Down

0 comments on commit 74e2651

Please sign in to comment.