enjoy 4.4 release ^_^

This commit is contained in:
James
2019-08-20 21:29:19 +08:00
parent 6156051e16
commit 442a920366
14 changed files with 280 additions and 107 deletions

View File

@@ -63,12 +63,7 @@ public class EscapeDirective extends Directive {
}
private void escape(String str, Writer w) throws IOException {
int len = str.length();
if (len == 0) {
return ;
}
for (int i = 0; i < len; i++) {
for (int i = 0, len = str.length(); i < len; i++) {
char cur = str.charAt(i);
switch (cur) {
case '<':