//判断string中是否包含img标签
if (!TextUtils.isEmpty(content) && content.indexOf("]*?>";
Pattern p_image = Pattern.compile(regEx_img, Pattern.CASE_INSENSITIVE);
Matcher m_image = p_image.matcher(content);
//循环去掉img标签
while (m_image.find()) {
String group = m_image.group();
Log.e("fhxx", "html--->" + group);
content = content.replace(group, "");
Log.e("fhxx", "截取--->" + content);
}
}
textview.setText(Html.fromHtml(content));



