use of org.wso2.carbon.apimgt.rest.api.common.codegen.DynamicHtmlGen in project carbon-apimgt by wso2.
the class DynamicHtmlGenTestCase method testEscapeUnsafeCharacters.
@Test
public void testEscapeUnsafeCharacters() throws Exception {
DynamicHtmlGen htmlGen = new DynamicHtmlGen();
final String stringToEscape = "hello\nworld";
String result = htmlGen.escapeUnsafeCharacters(stringToEscape);
// Shouldn't be escaped
Assert.assertEquals(result, stringToEscape);
}
Aggregations