public static SpannableStringBuilder a(String paramString, Html.TagHandler paramTagHandler) { if (paramString == null) { return new SpannableStringBuilder(); } if (paramTagHandler == null) {} for (Spanned localSpanned = efj.y(paramString);; localSpanned = Html.fromHtml(paramString, null, paramTagHandler)) { return a(new SpannableStringBuilder(localSpanned), null); } }
public HtmlToSpannedConverter(String source, ICustomFontLoader fontLoader, Html.ImageGetter imageGetter, Html.TagHandler tagHandler, Parser parser) { mSource = source; mSpannableStringBuilder = new SpannableStringBuilder(); mFontLoader = fontLoader; mImageGetter = imageGetter; mTagHandler = tagHandler; mReader = parser; }
public static Spanned fromHtml(String text) { text = firstLineStyle(text); text = spanToPseudoElement(text); text = fixNewline(text); TagHandler handler = new HtmlTagHandler(); return(Html.fromHtml(text,null,handler)); }
/** * Converts HTML string to a {@link Spanned} text, adjusting formatting and using a custom * image getter. Any extra new line characters at the end of the text will be trimmed. */ public static CharSequence fromHtml(Context context, String text, ImageGetter imageGetter, TagHandler tagHandler) { if (TextUtils.isEmpty(text)) { return null; } return postprocess(context, Html.fromHtml(text, imageGetter, tagHandler)); }