Fix parsing of hexadecimal encoded entities.

This commit is contained in:
Gijsbert van den Brink 2017-04-28 12:07:00 +02:00
parent f21ab8bfe6
commit 1fc15905db
1 changed files with 2 additions and 2 deletions

View File

@ -577,8 +577,8 @@ public class XhtmlParser {
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"))