### Question:
Entities { static String unescape(String string) { return unescape(string, false); }    }### Answer:
@Test public void unescape() { String text = "Hello &amp;&LT&gt; &angst &#960; &#960 &#x65B0; there &! &frac34;"; assertEquals("Hello &<> Å π π 新 there &! ¾", Entities.unescape(text)); assertEquals("&0987654321; &unknown", Entities.unescape("&0987654321; &unknown")); }
@Test public void strictUnescape() { String text = "Hello &mid &amp;"; assertEquals("Hello &mid &", Entities.unescape(text, true)); assertEquals("Hello ∣ &", Entities.unescape(text)); assertEquals("Hello ∣ &", Entities.unescape(text, false)); }
@Test public void quoteReplacements() { String escaped = "&#92; &#36;"; String unescaped = "\\ $"; assertEquals(unescaped, Entities.unescape(escaped)); }