APISonar


com.github.jknack.handlebars.EscapingStrategy.XML

> com > github > jknack > handlebars > EscapingStrategy > XML
com APIs github APIs jknack APIs handlebars APIs EscapingStrategy APIs XML APIs

Example 1
public void xmlEscape() throws IOException {
    Template template = new Handlebars().with(EscapingStrategy.XML).compileInline("{{this}}");

    assertEquals("&lt;xml&gt;", template.apply("<xml>"));
    assertEquals("", template.apply(null));
    assertEquals("", template.apply(""));
  }