TextUtils { public static CharSequence textToHtml(String text) { if (text == null) { return null; } return Html.fromHtml(markdownToHtml(text)); } private  TextUtils(); static CharSequence textToHtml(String text); static String ellipsizeBeginning(String text); static String join(@NonNull CharSequence delimiter, @NonNull Iterable tokens);  }
@Test public void textToHtml_BouncesNullInput() { String input = null; CharSequence observed = TextUtils.textToHtml(input); Assert.assertNull(observed); }
@Test public void textToHtml_SupportsEscapedLt() { String[] tests = { "<1", }; for (String testCase: tests) { assertEquals(testCase, TextUtils.textToHtml(testCase).toString()); } }