Added links to wiki for EncodeHtml, EncodeJs, EncodeJson and EncodeXml

This commit is contained in:
Erik C. Thauvin 2023-03-18 14:56:19 -07:00
parent 0f62f9cb5b
commit cea371ed31
7 changed files with 16 additions and 36 deletions

View file

@ -54,8 +54,8 @@ class TestEncode {
@Test
void testEncodeJson() {
var t = TemplateFactory.JSON.get("encodeJson");
t.setAttribute(TestCase.FOO, "fde\fde\rjk\tos\\u218Foi");
assertThat(t.getContent()).isEqualTo("{\n \"foo\": \"fde\\fde\\rjk\\tos\\\\u218Foi\"\n}");
t.setAttribute(TestCase.FOO, "This is a \"•test\"");
assertThat(t.getContent()).isEqualTo("{\n \"foo\": \"This is a \\\"\\u2022test\\\"\"\n}");
}
@Test