@Test public void testSanitizeOnOutput() { WLabel label = new WLabel("<form>content</form>"); label.setSanitizeOnOutput(true); label.setEncodeText(false); Assert.assertEquals("Expect output to be sanitized", "content", label.getText()); }
@Test public void testSanitizeOnOutput() { WLabel label = new WLabel("<form>content</form>"); label.setSanitizeOnOutput(true); label.setEncodeText(false); Assert.assertEquals("Expect output to be sanitized", "content", label.getText()); }