Fixed bug 105: entity was not passed through if it occurred at end of string.
This commit is contained in:
parent
7dfdd39240
commit
75f033f6a5
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ public final class HtmlEncoder {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case '&':
|
case '&':
|
||||||
// check if this is an HTML entity already, in which case we pass it though unchanged
|
// check if this is an HTML entity already, in which case we pass it though unchanged
|
||||||
if (i < l-4 && !insideCodeTag) {
|
if (i < l-3 && !insideCodeTag) {
|
||||||
// is this a numeric entity?
|
// is this a numeric entity?
|
||||||
if (chars[i+1] == '#' ) {
|
if (chars[i+1] == '#' ) {
|
||||||
int j = i+2;
|
int j = i+2;
|
||||||
|
|
Loading…
Add table
Reference in a new issue