Java 类android.text.Html.TagHandler 实例源码

项目:FMTech    文件:lww.java   
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);
  }
}
项目:android-customfonthtml    文件:CustomHtml.java   
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;
}
项目:chemlogic-android    文件:ChemlogicFragment.java   
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));

}
项目:chemlogic-android    文件:ChemlogicFragment.java   
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));

}
项目:silent-contacts-android    文件:HtmlUtils.java   
/**
 * 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));
}