private Html.TagHandler tagHandler;
public Html2SpannedParser(Html.TagHandler tagHandler) {
this.tagHandler = tagHandler;
}
@Override
<BUG>public Spanned parse(String source, final ImageGetterWrapper imageGetter) {
return Html.fromHtml(source, new Html.ImageGetter() {</BUG>
@Override
public Drawable getDrawable(String source) {
return imageGetter.getDrawable(source);

private Html.TagHandler tagHandler;
public Html2SpannedParser(Html.TagHandler tagHandler) {
this.tagHandler = tagHandler;
}
@Override
public Spanned parse(String source, final ImageGetterWrapper imageGetter) {
if (imageGetter == null) {
return Html.fromHtml(source, null, tagHandler);
}
return Html.fromHtml(source, new Html.ImageGetter() {
@Override
public Drawable getDrawable(String source) {
return imageGetter.getDrawable(source);
