Skip to content

Commit

Permalink
Merge pull request #636 from gijsbert802/fix-hex-encoded-xml-entity-p…
Browse files Browse the repository at this point in the history
…arsing

Fix parsing of hexadecimal encoded entities.
  • Loading branch information
jamesagnew committed May 20, 2017
2 parents 9ca8a28 + 1fc1590 commit 77109cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ else if (c.equals("sect"))
else if (c.charAt(0) == '#') {
if (isInteger(c.substring(1), 10))
s.append((char) Integer.parseInt(c.substring(1)));
else if (isInteger(c.substring(1), 16))
s.append((char) Integer.parseInt(c.substring(1), 16));
else if (c.charAt(1) == 'x' && isInteger(c.substring(2), 16))
s.append((char) Integer.parseInt(c.substring(2), 16));
} else if (c.equals("fnof"))
s.append((char) 402); // latin small f with hook = function = florin, U+0192 ISOtech -->
else if (c.equals("Alpha"))
Expand Down

0 comments on commit 77109cb

Please sign in to comment.