private static void replaceTag(final StringBuilder input,
                                   final String from, final String to) {
        if (replace(input, '<' + from + '>', '<' + to + '>')) {
            replace(input, "</" + from + '>', "</" + to + '>');
        }
    }
Format given HTML string so it is ready to be presented in a text view

@param html
@return formatted HTML
app/src/main/java/com/github/pockethub/android/util/HtmlUtils.java