If you want render the HTML correctly you could just use
Spanned parsedHtmlString = Html.fromHtml(htmlString)
instaed if rendering the html can cause you some layout problems you can use this to remove the html tags
Spanned strippedHtmlString = Html.fromHtml(htmlString).toString()
Remember that those metdods are deprecated starting from Android N, so you need to use something like this for compiling with API 24+
Spanned result;
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
result = Html.fromHtml(htmlString, Html.FROM_HTML_MODE_LEGACY); //add .toString() to remove html tags
} else {
result = Html.fromHtml(htmlString); //add .toString() to remove html tags
}
took from here
EDIT
Based on your comment, i think you should go with this:
public RssItem(Parcel source) {
Bundle data = source.readBundle();
title = Html.fromHtml(data.getString("title")).toString();
link = Html.fromHtml(data.getString("link")).toString();
pubDate = (Date) data.getSerializable("pubDate");
description = Html.fromHtml(data.getString("description")).toString();
content = Html.fromHtml(data.getString("content")).toString();
feed = data.getParcelable("feed");
}
i've omitted some objects because it really depends on what they contain.
Moreover you should do some check for null before parsing them with Html.fromHtml