fix: removed encoding of valid unicode characters to html entities

This commit is contained in:
Tobi Schäfer 2015-12-13 12:36:37 +01:00
parent 735de0bbf6
commit 948dc9a76b

View file

@ -767,18 +767,7 @@ public final class HtmlEncoder {
}
}
/*if (c < 128 || insideMacroTag) {
ret.append(c);
} else if ((c >= 128) && (c < 256)) {
ret.append(transform[c - 128]);
} else {
ret.append("&#");
ret.append((int) c);
ret.append(";");
}*/
ret.append(c);
escape = false;
}
}
@ -909,16 +898,7 @@ public final class HtmlEncoder {
break;
default:
// ret.append (c);
if (c < 128) {
ret.append (c);
} else if ((c >= 128) && (c < 256)) {
ret.append(transform[c - 128]);
} else {
ret.append("&#");
ret.append((int) c);
ret.append(";");
}
}
}
}