@Test public void testBr_CrLfOnly() { assertThat(Functions.br("\r\n"), is("<br />")); assertThat(Functions.br("a\r\n"), is("a<br />")); assertThat(Functions.br("\r\na"), is("<br />a")); assertThat(Functions.br("\r\n\r\n"), is("<br /><br />")); assertThat(Functions.br("<br />\r\n\r\n<br />"), is( "<br /><br /><br /><br />")); }
public static String br(String value) { if (value == null || value.isEmpty()) { return ""; } String replacedValue = LINE_BREAK_PATTERN.matcher(value).replaceAll( HTML_TAG_OF_LINE_BREAK); return replacedValue; }
Functions { public static String br(String value) { if (value == null || value.isEmpty()) { return ""; } String replacedValue = LINE_BREAK_PATTERN.matcher(value).replaceAll( HTML_TAG_OF_LINE_BREAK); return replacedValue; } }
Functions { public static String br(String value) { if (value == null || value.isEmpty()) { return ""; } String replacedValue = LINE_BREAK_PATTERN.matcher(value).replaceAll( HTML_TAG_OF_LINE_BREAK); return replacedValue; } private  Functions(); }
Functions { public static String br(String value) { if (value == null || value.isEmpty()) { return ""; } String replacedValue = LINE_BREAK_PATTERN.matcher(value).replaceAll( HTML_TAG_OF_LINE_BREAK); return replacedValue; } private  Functions(); static String h(Object input); static String u(String value); static String br(String value); static String cut(String value, int length); static String link(String value); static String mapToQuery(Map<String, ?> map); @Deprecated static String mapToQuery(Map<String, ?> map,
            BeanWrapper beanWrapper); static String query(Object params); static String js(String value); static String hjs(String input); }
Functions { public static String br(String value) { if (value == null || value.isEmpty()) { return ""; } String replacedValue = LINE_BREAK_PATTERN.matcher(value).replaceAll( HTML_TAG_OF_LINE_BREAK); return replacedValue; } private  Functions(); static String h(Object input); static String u(String value); static String br(String value); static String cut(String value, int length); static String link(String value); static String mapToQuery(Map<String, ?> map); @Deprecated static String mapToQuery(Map<String, ?> map,
            BeanWrapper beanWrapper); static String query(Object params); static String js(String value); static String hjs(String input);  }