@Test public void unescape() throws Exception { assertEquals("", esc.unescape(null)); assertEquals("", esc.unescape("")); assertEquals("hallo", esc.unescape("hallo")); assertEquals("hallo\\world", esc.unescape("hallo\\\\world")); assertEquals("hallo\nworld", esc.unescape("hallo\\nworld")); assertEquals("hallo\rworld", esc.unescape("hallo\\rworld")); assertEquals("hallo\r\nworld", esc.unescape("hallo\\r\\nworld")); assertEquals("hallo\tworld !", esc.unescape("hallo\\tworld\\t!")); assertEquals("hallo\bworld", esc.unescape("hallo\\bworld")); assertEquals("hallo\fworld", esc.unescape("hallo\\fworld")); assertEquals("hallo\fworld", esc.unescape("hallo\\fworld")); assertEquals("hallo'world", esc.unescape("hallo\\'world")); assertEquals("hallo\"world", esc.unescape("hallo\\\"world")); assertEquals("hallo\u2028world", esc.unescape("hallo\\u2028world")); }
public String unescape(String text) { if (isNotBlank(text)) { return replaceEach(text, ESCAPED, UNESCAPED); } return EMPTY; }
Escape { public String unescape(String text) { if (isNotBlank(text)) { return replaceEach(text, ESCAPED, UNESCAPED); } return EMPTY; } }
Escape { public String unescape(String text) { if (isNotBlank(text)) { return replaceEach(text, ESCAPED, UNESCAPED); } return EMPTY; }  }
Escape { public String unescape(String text) { if (isNotBlank(text)) { return replaceEach(text, ESCAPED, UNESCAPED); } return EMPTY; }  String escape(String text); String unescape(String text); }
Escape { public String unescape(String text) { if (isNotBlank(text)) { return replaceEach(text, ESCAPED, UNESCAPED); } return EMPTY; }  String escape(String text); String unescape(String text);  }