fix: removed encoding of valid unicode characters to html entities
This commit is contained in:
parent
735de0bbf6
commit
948dc9a76b
1 changed files with 1 additions and 21 deletions
|
@ -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);
|
ret.append(c);
|
||||||
|
|
||||||
escape = false;
|
escape = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -909,16 +898,7 @@ public final class HtmlEncoder {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// ret.append (c);
|
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(";");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue