im getting blank images using spanned from.Html. Is there any way to hide them and get only text?
Spanned description = Html.fromHtml(des.get(position));
Instead of Html.fromHtml(String source)
, you can use Html.fromHtml(String source, Html.ImageGetter imageGetter, Html.TagHandler tagHandler)
.
Implement an ImageGetter
that returns a blank image, and pass null
for the TagHandler
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.