in Android

Transform HTML entities to normal text

If you are parsing HTML encoded data like RSS, you’ll probably face HTML entities representing special characters like quotes, the & symbol and more.

It’s fine if you use the WebView to present them, but if you want to display the data somewhere else you have to transform them to “normal text”.

mTextView.setText(Html.fromHtml(htmlData).toString());
Share