Anyone see what I am doing wrong here?
In the first case, you are removing your HTML formatting by implicitly calling toString()
on the results of Html.fromHtml()
when you concatenate it with articleData
.
In the second case, if articleData
truly contains newlines, those are converted into plain spaces as part of normal HTML rendering.
Try using TextUtils.concat()
instead of +
in your first case, as that should retain the spans created using Html.fromHtml()
.