@Test
public void escapeHtml() throws IOException {

  Handlebars handlebars = new Handlebars();
  handlebars.registerHelper("@json", Jackson2Helper.INSTANCE);
  Map<String, String> model = new HashMap<String, String>();
  model.put("script", "<script text=\"text/javascript\"></script>");
  assertEquals("{\"script\":\"<script text=\\\"text/javascript\\\"></script>\"}", handlebars
      .compileInline("{{@json this}}").apply(model));
  assertEquals(
      "{\"script\":\"\\u003Cscript text=\\\"text/javascript\\\"\\u003E\\u003C/script\\u003E\"}",
      handlebars.compileInline("{{@json this escapeHTML=true}}").apply(model));
}