APISonar


com.github.jknack.handlebars.EscapingStrategy.CSV

> com > github > jknack > handlebars > EscapingStrategy > CSV
com APIs github APIs jknack APIs handlebars APIs EscapingStrategy APIs CSV APIs

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

    assertEquals("\"\"\"Escaping\"\"\"", template.apply("\"Escaping\""));
    assertEquals("", template.apply(null));
    assertEquals("", template.apply(""));
  }