public static Spanned getStyledTextFromHtml(String html) {
    Spanned result = Html.fromHtml(html, null, new StyledTextTagHandler());
    result = removeTrailingNewlines(result);
    return result;
  }
Converts the provided HTML into a styled string. This method is similar to {@link
Html#fromHtml(String)}, but has the following advantages: <ul> <li>support for bullet
lists,</li> <li>trailing newlines are removed from the output.</li> </ul>
java/com/google/android/apps/authenticator/util/Utilities.java