TemplateContext ctx = new MappedTemplateContext();
ctx.put("value", "<world name=\"'中国'\" />");
ctx.put("jsValue", "<world name=\"'中国'\" />");
ctx.put("control", new MyControl());
ctx.put("Screen_Placeholder", "<world name=\"'中国'\" />");
ctx.put("stringescapeutil", new StringEscapeUtil());
String content = templateService.getText("escape/test_escape_rules.vm", ctx);
// default = html
assertThat(content, containsString("1. <world name="'中国'" />"));