Skip to content

Commit 393e4d9

Browse files
authored
Merge pull request #2 from chrisnew/patch-1
fixing ReferenceError: strEnt is not defined
2 parents 332e847 + 9ea4bfa commit 393e4d9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/sax-parser.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -676,6 +676,8 @@
676676
iB = iB || 0;
677677
iE = iE || strD.length;
678678

679+
var strEnt;
680+
679681
switch (strD.substring(iB, iE)) {
680682
case "amp":
681683
strEnt = "&";

0 commit comments

Comments
 (0)